C++ examples for Data Type:float
Floating-Point Operations with NaN and +/-infinity Operands
Operation | Result | Operation | Result |
---|---|---|---|
+/-value/0 | +/-infinity | 0/0 | NaN |
+/-infinity +/- value | +/-infinity | +/-infinity/+/-infinity | NaN |
+/-infinity*value | +/-infinity | infinity-infinity | NaN |
+/-infinity/value | +/-infinity | infinity*0 | NaN |