Extracted from Pike v8.0 release 240 as of 2016-05-30.
   

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).