jmquintana79
1/18/2017 - 9:15 AM

Round number to closer up ten / hundred .. value

Round number to closer up ten / hundred .. value

## NUMBER CLOSER THAN TEN
def roundup(x):
    import math
    return int(math.ceil(x / 10.0)) * 10
    
    
## NUMBER CLOSER THAN HUNDRED
def roundup(x):
    import math
    return int(math.ceil(x / 100.0)) * 100