Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get next multiple of a number

# n integer to chech
# a = multipole

# find the near a-multipole to n
n + (a - n % a)

 
PREVIOUS NEXT
Tagged: #multiple #number
ADD COMMENT
Topic
Name
1+1 =