Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • Binary floats are numerically better than decimal floats using the same number of bits. The only advantage of decimal floats is that the set of numbers that are exactly representable fits nicely with the range of values that can be concisely written in human-readable form. Having (100/3-33)*3 yield exactly 0.999999 may be more elegant than having it yield 0.99999985, but that doesn't make it more accurate. Commented Jun 25, 2021 at 16:02