Vocabularymath.
text.
englishInputsOutputsWord descriptionDetermine the ordinal suffix for the input number. Non-integral numbers get the ordinal suffix of their integral part.
ExamplesUSING: kernel math.parser math.text.english prettyprint sequences ;
783 [ number>string ] [ ordinal-suffix ] bi append .
"783rd"
Definition