Next Page Contents

output::ordinal -- ordinal numbers

Introduction

output::ordinal converts an integer to the corresponding english ordinal number.

Call(s)

output::ordinal(integer)

Parameters

integer - integer

Returns

a string with the english ordinal number

Related Functions

info, userinfo, print

Details

Example 1

Convert some numbers to the corresponding english ordinal string:

>> map([0, 1, 2, 3, 4, 22, 134, 2001], output::ordinal)
      ["0th", "1st", "2nd", "3rd", "4th", "22nd", "134th", "2001st"]

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000