Standard arithmetic functions including things like rounding, sign manipulation, and maximum/minimum functions.
roundUp( x )x (floating point): a value.
x rounded up
roundDown( x )x (floating point): a value
x rounded down
round( x )x (floating point): a floating point value.
x rounded to the nearest integer
roundDecimal( x, dp )float (32-bit floating point value),
so this is only suitable for relatively low-precision values.
It's intended for truncating the number of apparent significant
figures represented by a value which you know has been obtained
by combining other values of limited precision.
For more control, see the functions in the Formats class.
x (floating point): a floating point value
dp (integer): number of decimal places (digits after the decimal point)
to retain
x but with a
limited apparent precision
abs( x )x (integer): the argument whose absolute value is to be determined
abs( x )x (floating point): the argument whose absolute value is to be determined
max( a, b )Multiple-argument maximum functions are also provided in the
Arrays and Lists packages.
a (integer): an argument.
b (integer): another argument.
a and b.
maxNaN( a, b )a (floating point): an argument.
b (floating point): another argument.
a and b.
maxReal( a, b )Multiple-argument maximum functions are also provided in the
Arrays and Lists packages.
a (floating point): an argument
b (floating point): another argument
a and bmin( a, b )Multiple-argument minimum functions are also provided in the
Arrays and Lists packages.
a (integer): an argument.
b (integer): another argument.
a and b.
minNaN( a, b )a (floating point): an argument.
b (floating point): another argument.
a and b.
minReal( a, b )Multiple-argument minimum functions are also provided in the
Arrays and Lists packages.
a (floating point): an argument
b (floating point): another argument
a and b