Roundup Tracker - Issues

Message8590

Author rouilj
Recipients rouilj
Date 2026-11-25.01:08:25
Message-id <1795568905.82.0.0804810318071.issue2551441@roundup-tracker.org>
In-reply-to
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.
History
Date User Action Args
2026-11-25 01:08:26rouiljsetrecipients: + rouilj
2026-11-25 01:08:25rouiljsetmessageid: <1795568905.82.0.0804810318071.issue2551441@roundup-tracker.org>
2026-11-25 01:08:25rouiljlinkissue2551441 messages
2026-11-25 01:08:25rouiljcreate