$ord » History » Version 1
Per Amundsen, 08/06/2015 02:51 AM
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 | N - The number to format. |
||
10 | |||
11 | *Example* |
||
12 | |||
13 | <pre> |
||
14 | ; Format number '12' which becomes '12th' |
||
15 | //echo -ag $ord(12) |
||
16 | </prE< |