NumberLibRoundingMode: string | ((cons: DBNumberConstructor) => unknown)

Value of of getRoundingMode property.

This property may be:

  • String, specifying the property name of the constructor which contains rounding mode. Nested paths (with '.'s) are allowed.
  • Function, specifying how to get rounding mode value from the constructor. The function takes constructor as sole parameter and returns rounding mode value as one of the constant values used by the number library, which is typically numeric, but does not have to be so.
If getRoundingMode is not set, the driver will use value roundingMode property. If that is also not set, the driver will check constructor properties rounding, roundingMode, ROUNDING_MODE and RM in that order. If not found, default rounding mode ROUND_HALF_UP is assumed.

Also see RoundingModesMap for explanation on rounding modes.

Generated using TypeDoc