The DecimalToIntegerValidate function is a built-in function that returns true if Decimal d can be converted to an Integer value.

You can use this function before converting the Decimal value to an Integer value with the DecimalToInteger function.

Input parameters

d: Decimal Type

Output parameters

Boolean Type

Examples

Usage

Result

DecimalToIntegerValidate( 134.2 )

True

DecimalToIntegerValidate( 134.5 )

True

DecimalToIntegerValidate( 133.5 )

True

DecimalToIntegerValidate( 134.7 )

True

DecimalToIntegerValidate( 134 )

True

DecimalToIntegerValidate( 12345678999.9 )

False

See Also

DecimalToInteger Function | Available Conversion Functions to Integer | Available Built-in Functions