Floating point infinity is defined by the IEEE 754 floating point standard . As for the processor, this is a number. It is represented by a bit pattern with all the exponent bits set to 1, all bits in the value set to 0, and the sign bit corresponding to the infinity sign. The floating point circuit in your processor recognizes this bit pattern and understands what to do with infinity or negative infinity as operands. For most operators, this is probably the case with special cases of infinity in the circuit.
source
share