Truncates a decimal value according to a number of decimal digits.
void dectrunc(dec_t *np, mint trunc);
To truncate a decimal value, specifying the number of digits to the right of the decimal point.