Message8590
Roundup has Integer and Number types. Number can be a float or a double
precision number.
However neither works for things like currency (e.g. inventory pricing)
where you want
0.30 + 0.70 = 1.00.
The Decimal type does handle exactly this sort of thing.
* the Decimal type has to be represented in the databases
* db representation as string value and converted when loading.
Required method for dbm and sqlite backends.
Postgres has a Decimal or NUMERIC type (Roundup's numeric is
mapped
to potgres REAL or DOUBLE PRECISION). As does MySQL has Decimal as
does MSSql.
* Some method of defining precision has to be defined and passed
through to the
back ends that support it. |
|
| Date |
User |
Action |
Args |
| 2026-11-25 01:08:26 | rouilj | set | recipients:
+ rouilj |
| 2026-11-25 01:08:25 | rouilj | set | messageid: <1795568905.82.0.0804810318071.issue2551441@roundup-tracker.org> |
| 2026-11-25 01:08:25 | rouilj | link | issue2551441 messages |
| 2026-11-25 01:08:25 | rouilj | create | |
|