Decimal Functions - Gnorion/BizVR GitHub Wiki

Decimal Functions

Function Example
+ - * / ** = += -= *= < <= > >= <> standard infix operators
absVal(decimal) absVal(-3.1415) returns 3.1415
floor(decimal) floor(3.1415) returns 3.00 floor(-3.1415)' returns -4.00 the greatest integer that is less than or equal to x
ceiling(decimal) ceiling(3.1415) returns 4.00 ceiling(-3.1415)' returns -3.00 the least integer that is greater than or equal to x
fraction(decimal) fraction(3.1415') returns 0.1415
ln(decimal) natural log
log(decimal) base 10 log
log(decimal,base) log to specified base
max(decimal,decimal)
min(decimal,decimal)
random(min,max)
round(decimal) round to the nearest integer
round(decimal,digits) round to this number of decimal places
toInteger(decimal)
toString(decimal)
truncate(decimal) truncate(3.1415) returns 3.00 removes the fractional part
⚠️ **GitHub.com Fallback** ⚠️