Decimal

class pydiverse.transform.Decimal[source]
__init__(precision: int | None = None, scale: int | None = None)[source]

Initialize a Decimal Dtype.

Default is Decimal(31,10) which is the highest precision that works with DB2. If you like to save memory, Decimal(15,6) will get you quite far as well.

Parameters:
  • precision – total number of digits in the number If not specified, it is assumed to be 31.

  • scale – number of digits after the decimal point If not specified, it is assumed to be (precision//3+1).