ordinal()
Instance Public methods
Ordinal returns the suffix used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
1 2 3 4 5 6 | 1 .ordinal # => "st" 2 .ordinal # => "nd" 1002 .ordinal # => "nd" 1003 .ordinal # => "rd" - 11 .ordinal # => "th" - 1001 .ordinal # => "st" |
Please login to continue.