Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. 16 Digit Float Precision v 18.0
  4. Sales Conditions FAQ

16 Digit Float Precision

by Agga , IdeaCode Academy
Odoo

$ 574.20

v 18.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 318
Technical Name ica_16_digit
LicenseLGPL-3
Versions 16.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 318
Technical Name ica_16_digit
LicenseLGPL-3
Versions 16.0 18.0
Odoo 18.0 Technical Addon

16 Digit Float Precision

Odoo works well for regular business precision, but high precision float values can become unstable when rounding reaches 15 to 16 decimal places. This module fixes that specific float path while keeping normal Odoo performance and currency behavior unchanged.

  • Stabilizes backend rounding for high precision Float fields.
  • Keeps normal Monetary currency rounding exactly as Odoo expects.
  • Improves ORM round-trip and backend widget formatting for 16-digit business cases.
Safe up to 16 decimal places No change for normal 2-digit currency flow Frontend formatter patch included
16 Digit Float Precision preview

Default Odoo vs This Module

The difference is not that every field becomes 16-digit precision. The real difference is that this addon protects high precision float operations where default float normalization can expose binary tails. Monetary fields still follow currency decimals and are intentionally left with standard Odoo semantics.

Field Type Default Odoo With 16 Digit Float Precision
Float without digits Uses the normal float path and stores values as double precision. Good for common business values and fast calculations. No behavior change by design. Standard float fields stay on the fast path for compatibility and performance.
Float with high precision digits=(32, 16) Database storage can already be numeric, but Python float rounding and UI formatting may still show unstable results such as 1.0000000000000002 or 0.30000000000000004. Switches unsafe high precision rounding to a Decimal-based fallback, keeps float_round, float_compare, and float_repr stable, and formats backend values consistently up to 16 decimal places.
Monetary field Uses the currency precision defined in Odoo, usually 2 decimal places, and rounds according to normal monetary rules. No monetary rule change. Currency rounding stays the same. Example: 1.2345 still displays and behaves as 1.23 for a 2-decimal currency.

What Problem Does It Solve?

Backend Rounding

Default float normalization can become unsafe when the rounded integer crosses the IEEE-754 safe boundary. That is where precision artifacts start to appear.

ORM Read / Write

High precision float fields may store the right idea in PostgreSQL but still come back through Python float conversion with unstable decimal text.

Backend Display

Standard formatting can reveal binary tails in widgets. This addon also patches the backend formatter so values look consistent to users.

Practical Example

These examples describe the behavior this addon targets. Float precision is improved, while monetary precision remains driven by the selected currency.

Default Odoo high-precision float: float_round(1.0, precision_digits=16) -> 1.0000000000000002 float_round(0.1 + 0.2, precision_digits=16) -> 0.30000000000000004 With this module: float_round(1.0, precision_digits=16) -> 1.0000000000000000 float_round(0.1 + 0.2, precision_digits=16) -> 0.3000000000000000 Monetary example: amount = 1.2345 -> 1.23 for a 2-decimal currency
This module is for safer Float handling up to the practical 16-digit range of Python double precision. It does not turn Odoo monetary values into arbitrary precision accounting fields.

Included Improvements

  • Patches Odoo float utilities only when high precision fallback is needed.
  • Preserves normal low-precision speed for everyday use.
  • Keeps fields.Float compatible with existing digits=(precision, scale).
  • Leaves currency-based fields.Monetary behavior unchanged.
  • Adds backend formatter overrides for cleaner high precision display.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with