# Tag Info

### 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 ...
• 19.7k

### 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 ...
• 8,349

### 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....
• 1,310

### 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 &...
• 3,924

### 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 ...
• 9,067

### 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 ...
• 1,812

### 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: ...
• 1,057

### 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 ...
• 8,321