1. ## INFINITY micro

Hi guys, I'm totally in shock that in C programming there's what's called "INFINITY micro" which it means infinity as we have in mathematics.

My question and sorry for that silly question, how does PC/compiler assign INFINITY value whenever it's INFINITY ? is it just assigning it as big big big number which can deal with it as INFINITY ? I mean how PC/compiler consider INFINITY as?
In math INFINITY just a concept .. a bigger bigger number .. but in PC sounds different

thanks 2. 3. This applies just to floating point types. There are 4 "classes" of values: sub normals, normalized, NANs and INFINITYs. As in math, INFINITY isn't a number, but a "concept".

There are 3 major binary representations of floating point types: single precision (float), double precision (double) and extended precision (long double). Some processors and compilers support 3 more: half precision (__fp16) and quad precision (__float128) and octuple precision (I never seen an implementation of this type), all defined by the latest revision of IEEE 754 (2008), but they are implemented optionally. They aren't standarized on ISO 9989.

To understand how these types are structured, you can see these links (Half Precision, Single Precision, Double Precision, Extended Precision -- and Quadruple Precision)... Octuple precision is rarely implemented.

Another great source of knowledge about floating point is David Goldberg's article What every computer scientist should know about floating point.

A good book with a lot of information about floating point is this: Handbook of floating point arithmetic.

I recomend all these references to everyone who wishes to understand what a floating point really is (they are not containers for "real" numbers)... 4. Ahhh... another thing you'll be shocked! Since C99 "complex" floating point is supported:
Code:
```#include <complex.h>
complex double x = 1.0 + I; // I or J are valid "imaginary" parts```
And there are math functions which deals with complex numbers (csqrt(), csin(), ccos(), ...)... 5. thank you all!!! Popular pages Recent additions big, infinity, micro, pc/compiler, question 