Checks if the string content is an integer or a floating point number.
Syntax
XIH.IsNumber(numberAsText)
XIH.IsNumber(numberAsText, numberStyle, culture)
Parameters
Parameter | Data type | Description | Sample |
---|---|---|---|
numberAsText | string | String specifies any number in a specific numeral system. | "5" |
numberStyle | Specifies which numeric string argument styles are permitted. | int | |
culture | Specifies essentially which languages are allowed and forbidden. | en-US |
Remarks
Available starting from version 5.5.
Note that while using NumberStyles it is only possible to use integer or floating point specific number styles.
CCXAllowedInstanceTypes must contain: System.Globalization.NumberStyles;System.Globalization.CultureInfo
Examples
XIH.IsNumber(
"4"
)
XIH.IsNumber(
"1"
,System.Globalization.NumberStyles.Float,
new
System.Globalization.CultureInfo(
"de-AT"
))
Related
- TIS Parameters
- TIService Settings
- XIH Functions