Answers for "np.ceil to 0.1"

0

np.ceil to 0.1

def round_up(n, decimals=0):
    multiplier = 10 ** decimals
    return math.ceil(n * multiplier) / multiplier
Posted by: Guest on June-15-2020

Python Answers by Framework

Browse Popular Code Answers by Language