DecrementValue
Last updated
Was this helpful?
Decrement the integer part of a number
DecrementValue(number=[numeric])number
numeric
true
The number to decrement the integer part of.
decrementValue( 7 );
Result: 6
decrementValue( 7.5 );
Result: 6.5
Last updated
Was this helpful?
Was this helpful?
writeDump( decrementValue( 6 ) ); // 5
writeDump( decrementValue( 6.5 ) );
// 5.5
