Project

General

Profile

Actions

Added in 1.9.0

$ord(N)

Appends st, nd, rd, th as appropriate to the number N.

Parameters

Parameter Description
N The number to format.

Example

; Format number '12' which becomes '12th'
//echo -ag $ord(12)

Updated by Per Amundsen over 1 year ago · 3 revisions

Also available in: PDF HTML TXT