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

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

> 

convert⁡0,ordinal

0th

(1)
> 

convert⁡1,ordinal

first

(2)
> 

convert⁡2,ordinal

second

(3)
> 

convert⁡12,ordinal

12th

(4)
> 

convert⁡113,ordinal

113th

(5)
> 

convert⁡123,ordinal

123rd

(6)
> 

convert⁡−7,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