<-- Previous || Up || Next -->

Number Suffix Function
String Numerics Class

Public Function NumberSuffix( _
    ByVal vValue As Variant _
    ) As Variant

For converting numbers like "1" to "st", "2" to "nd", etc.
Returns the suffix only.
Similar to the NumberAndSuffix function except that that one returns both the number and its suffix.

Examples:
    NumberSuffix(1) = "st"
    NumberSuffix(2) = "nd"
    NumberSuffix(13) = "th"
    NumberSuffix(42) = "nd"
    NumberSuffix(45) = "th"
See also:
    NumberAndSuffix Function
    Spellings Class
vValue: Number whose suffix is to be returned. The suffix denotes the position of the item with this number within the list of items. Function returns Null if vValue is Null or cannot be fixed up to a number.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.