$int » History » Version 1
Per Amundsen, 08/06/2015 07:19 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$int(N)* |
||
| 4 | |||
| 5 | Returns the integer part of a floating point number with no rounding. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | N - The floating point number to convert. |
||
| 10 | |||
| 11 | *Example* |
||
| 12 | |||
| 13 | <pre> |
||
| 14 | ; Convert '3.14159' to '3' |
||
| 15 | //echo -ag Converted to $int(3.14159) |
||
| 16 | </pre> |