$int » History » Version 2
Per Amundsen, 02/23/2023 01:50 PM
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 | 2 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | N | The floating point number to convert. | |
||
12 | 1 | Per Amundsen | |
13 | *Example* |
||
14 | |||
15 | <pre> |
||
16 | ; Convert '3.14159' to '3' |
||
17 | //echo -ag Converted to $int(3.14159) |
||
18 | </pre> |