Skip to content
Advertisement

Tag: ceil

Round to the next tens in Python

Is there a way to round always up to the next tens? E.g., 0.000000000003 shall become 0.1. 0.1244593249234 shall become 0.2 and 0.9x shall become 1. Negative numbers are not a thing here. Is there a built in or do I need to come up with something? Answer by multiplying the input f to 10, you will map it from

Advertisement