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

You can use this function before converting the Decimal value to a Long Integer value with the DecimalToLongInteger function.

Input parameters

d: Decimal Type

Output parameters

Boolean Type

Examples

Usage

Result

DecimalToLongInteger( 134.2 )

True

DecimalToLongInteger( 134.5 )

True

DecimalToLongInteger( 133.5 )

True

DecimalToLongInteger( 134.7 )

True

DecimalToLongInteger( 134 )

True

DecimalToLongInteger( 157898999999988844444.2 )

False

See Also

DecimalToLongInteger Function | Available Conversion Functions to Long Integer | Available Built-in Functions