Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy roundup to nearest 5

#To roundup to nearest 5
import numpy as np
def roundup(x):
    return int(np.ceil(x / 5.0)) * 5
 
PREVIOUS NEXT
Tagged: #numpy #roundup #nearest
ADD COMMENT
Topic
Name
5+5 =