$ord » History » Version 3
Per Amundsen, 02/23/2023 06:41 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$ord(N)* |
||
4 | |||
5 | Appends st, nd, rd, th as appropriate to the number N. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | 3 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | N | The number to format. | |
||
12 | 1 | Per Amundsen | |
13 | *Example* |
||
14 | |||
15 | <pre> |
||
16 | ; Format number '12' which becomes '12th' |
||
17 | //echo -ag $ord(12) |
||
18 | 2 | Per Amundsen | </pre> |