Day InstanceNumeric Suffix Method
This is used to get the descriptive suffix for a number (i.e. "st" for 1st, "nd" for 2nd, etc).
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
The number as a string with the appropriate suffix
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
public static string NumericSuffix(
int number
)VB
Public Shared Function NumericSuffix (
number As Integer
) As StringC++
public:
static String^ NumericSuffix(
int number
)F#
static member NumericSuffix :
number : int -> string Parameters
- number Int32
- The number for which to get the suffix
Return Value
StringThe number as a string with the appropriate suffix
Remarks
It is static so that it can be shared with other classes that need it