ValidationHelperIsDecimal Method |
Returns true if the object representation matches the decimal type.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax public static bool IsDecimal(
Object value,
string culture = null,
int precision = 0,
int scale = 0
)
Parameters
- value
- Type: SystemObject
Value to check - culture (Optional)
- Type: SystemString
Culture code - precision (Optional)
- Type: SystemInt32
Maximum number of digits - scale (Optional)
- Type: SystemInt32
Maximum number of decimal places
Return Value
Type:
BooleanSee Also