Issue 2551441
Created on 2026-11-25 01:08 by rouilj, last changed 2026-11-25 01:08 by rouilj.
| msg8590 |
Author: [hidden] (rouilj) |
Date: 2026-11-25 01:08 |
|
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:25 | rouilj | create | |
|