Extracted from Pike v8.0 release 164 as of 2018-07-18.
   

Method Sql.odbc()->typed_result()->scale_numeric()


Method scale_numeric

Gmp.mpq|int scale_numeric(int mantissa, int scale)

Description

Helper function that scales mantissa by a factor 10->pow(scale).

Returns

Returns an Gmp.mpq object if scale is negative, and otherwise an integer (bignum).