DecrementValue
Decrement the integer part of a number
Method Signature
DecrementValue(number=[numeric])
Arguments
Argument
Type
Required
Description
Default
number
numeric
true
The number to decrement the integer part of.
Examples
Decrement 7
decrementValue( 7 );
Result: 6
Decrement 7.5
decrementValue( 7.5 );
Result: 6.5
Additional Examples
writeDump( decrementValue( 6 ) ); // 5
writeDump( decrementValue( 6.5 ) );
// 5.5
Related
Last updated
Was this helpful?