ordinal - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


convert/ordinal

convert an integer to an ordinal string

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

convert( n, 'ordinal' )

Parameters

n

-

an integer

Description

• 

Conversion of an integer to an ordinal produces a string indicating the ordinal representation of the given integer n.

Examples

convert0,ordinal

0th

(1)

convert1,ordinal

first

(2)

convert2,ordinal

second

(3)

convert12,ordinal

12th

(4)

convert113,ordinal

113th

(5)

convert123,ordinal

123rd

(6)

convert7,ordinal

-7th

(7)

Compatibility

• 

The convert/ordinal command was introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

See Also

convert/string