Skip to main content
9 votes

What are the pros and cons of fixed-point arithmetics vs floating-point arithmetics?

The main upside of floating-point arithmetic is that it allows for reprensenting a wider range of magnitudes than a fixed-point number using the same number of bits, while also allowing for more ...
kaya3's user avatar
  • 19.7k
6 votes

What are the pros and cons of fixed-point arithmetics vs floating-point arithmetics?

Fixed point arithmetic is more consistent Adding 0.128 to a number will always add 0.128 to the number until you reach the limit. In floating point arithmetic the steps get more inconsistent the ...
mousetail's user avatar
  • 8,349
6 votes

What are the pros and cons of fixed-point arithmetics vs floating-point arithmetics?

Firstly, consider fixed-point decimal arithmetic vs. fixed of floating point binary: the former is suitable for precise representation of monetary values, while the latter shall never be used for such....
SK-logic's user avatar
  • 1,310
6 votes

How could fixed-point be implemented?

Fixed-point is an integer with a statically-known decimal (or more generally, statically-known divisor). You can represent a fixed-point datatype as an "representation" integer type and &...
tarzh's user avatar
  • 3,924
5 votes

How could fixed-point be implemented?

Make precision part of the type I’m not familiar with any general-purpose languages that use fixed point at all, but this is what PostgreSQL does. If you want to indicate that a column stores 15 ...
Bbrk24's user avatar
  • 9,067
3 votes

What are the pros and cons of fixed-point arithmetics vs floating-point arithmetics?

In languages like COBOL or PL/I, there are a huge number of numeric types which all work similarly, but have different numbers of digits to the left and right of the decimal point. It would be common ...
supercat's user avatar
  • 1,812
3 votes

How could fixed-point be implemented?

Have a default precision, and allow changing it Lisp has several different types of floats. One is long-float, with arbritrary precision. For example: ...
naffetS's user avatar
  • 1,057
3 votes

How could fixed-point be implemented?

GCC Fixed-Point Types GCC has fixed point types as an extension. The types are _Fract and _Accum (A new language would designate ...
CPlus's user avatar
  • 8,321
2 votes

How could fixed-point be implemented?

Ada has fixed-point numbers: https://www.adaic.org/resources/add_content/standards/05rm/html/RM-3-5-9.html The given examples are ...
prosfilaes's user avatar
2 votes

What are the pros and cons of fixed-point arithmetics vs floating-point arithmetics?

This isn't really a "pro-vs-con" situation. Fixed-point and floating-point numbers have completely different areas of application. Fixed point arithmetic is used for accountancy systems - ...
Steve's user avatar
  • 701

Only top scored, non community-wiki answers of a minimum length are eligible