Feedback
Add an exact Decimal number type
- Status
- Fixed
- Fixed in
- v26.9.1
- Area
- -
- Source discussion
- https://forum.objo.dev/d/1000-decimal-type-ala-sql-server-or-oracle
- Last updated
- 2026-09-08
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Add a first-class exact Decimal numeric type for business, financial, statistical, and database-oriented code. Decimal values use base-10 arithmetic so values such as 0.1 can be represented without binary floating-point artefacts. Objo source can write exact Decimal literals with a d suffix, for example 12.34d, while unsuffixed fractional literals remain Double values.
The type should provide arithmetic, comparison, parsing, formatting, explicit conversions, configurable rounding through the existing RoundingMode API, and exact database column and prepared-statement support.