The biginttodec() function

The biginttodec() function converts a BIGINT type number to a decimal type number.

Syntax

mint biginttodec(bigintv, decp)
	const bigint bigintv
	dec_t *decp
bigintv
A bigint value to convert to decimal.
decp
A pointer to a decimal variable to contain the result of the conversion.

Return codes

0
The conversion was successful.
<0
The conversion failed.