IncrementValue
Last updated
Was this helpful?
Increment the integer part of a number
IncrementValue(number=[numeric])number
numeric
true
The number to increment the integer part of.
incrementValue( 7 );
Result: 8
BoxLang increments the integer part of the number but returns the full value, including the decimal part.
Result: 8.5
Last updated
Was this helpful?
Was this helpful?
incrementValue( 7.5 );
num = 169;
writeDump( incrementvalue( num ) );
num = .59;
writeDump( incrementvalue( num ) );
