DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+5 =
Submit