PgMoney v0.4.20 PgMoney.Extension View Source

Implements how to encode and decode PostgeSQL's money data type.

Link to this section Summary

Functions

Returns a Decimal.t/0 which corresponds to money with given precision.

Returns an integer which corresponds to money with given precision.

Link to this section Functions

Link to this function

to_dec(integer, precision \\ 2, telemetry \\ false)

View Source

Returns a Decimal.t/0 which corresponds to money with given precision.

Link to this function

to_int(decimal, precision \\ 2, telemetry \\ false)

View Source

Returns an integer which corresponds to money with given precision.