How would I do something like:
ceiling(N/500)
N representing a number.
But in a linux Bash script
Using the gorgeous 'printf' 1 will round up to the next integer
printf %.0f $float or printf %.0f `your calculation formula` or printf %.0f $(your calculation formula)
ref: how to remove decimal from a variable?