···66While [binary](/formats/binary/) [floating-point](/formats/fp/) numbers are better for computers to work with, and usually good enough for humans, sometimes they are just not appropriate. Sometimes, the numbers really must add up to the last bit, and no technical excuses are acceptable - usually when the calculations involve money.
7788Unfortunately, there is no dominating standard like IEEE 754 for this (The 2008 version of the standard added decimal types, which is too recent to have seen widespread adoption).
99-Each language or platform has its own solution, sometimes multiple different ones. For details, look at the "Languages" section.
99+Each language or platform has its own solution, sometimes multiple different ones. For details, look at the language cheat sheets.
10101111There are at least three fundamentally different kinds of such types:
1212
+2-2
content/languages/csharp.html
···11---
22-title: How to deal with floating-point numbers in C#
33-description: Tips for using floating-point numbers in C#
22+title: Floating-point cheat sheet for C#
33+description: Tips for using floating-point and decimal numbers in C#
44---
5566Floating-Point Types
+2-2
content/languages/java.html
···11---
22-title: How to deal with floating-point numbers in Java
33-description: Tips for using floating-point numbers in Java
22+title: Floating-point cheat sheet for Java
33+description: Tips for using floating-point and decimal numbers in Java
44---
5566Floating-Point Types
+2-2
content/languages/javascript.html
···11---
22-title: How to deal with floating-point numbers in JavaScript
33-description: Tips for using floating-point numbers in JavaScript
22+title: Floating-point cheat sheet for JavaScript
33+description: Tips for using floating-point and decimal numbers in JavaScript
44---
5566Floating-Point Types
+2-2
content/languages/php.html
···11---
22-title: How to deal with floating-point numbers in PHP
33-description: Tips for using floating-point numbers in PHP
22+title: Floating-point cheat sheet for PHP
33+description: Tips for using floating-point and decimal numbers in PHP
44---
5566Floating-Point Types