toBigDecimal (Conversion to large decimal integer)

Prev Next

See also: toLong (Conversion to large integer), toInteger (Conversion to large integer), toNumber (Conversion to native number), toString (Convert to a string)

Attempts to convert a given input value into a large decimal number of type 'BigDecimal'.

Tooltip

Syntax: $toBigDecimal(any)

Parameter

Description

any

Any value (or object) which should be converted.

If the input value cannot be converted, nothing (zero) is returned.

Example: $toBigDecimal(1234.5) → Returns an object of type 'BigDecimal' which has the numeric value '1234.5'.

Syntax

$toBigDecimal(any)

Parameter

Name

Description

any

Any value (or object) which should be converted.

Return value

If the input value cannot be converted, nothing (zero) is returned.

Examples

Syntax

Result

$toBigDecimal(1234.5)

Returns an object of the 'BigDecimal' type, which has the numeric value 1234.5.

$toBigDecimal($input)

Attempts to convert the input value of the expression