Boolean operations with floating point numbers

Question Q10.1.6

Predict and explain the outcome of the following:

(a) 1e1001 > 1e1000

(b) 1e350/1.e100 == 1e250

(c) 1e250 * 1.e-250 == 1e150 * 1.e-150

(d) 1e350 * 1.e-350 == 1e450 * 1.e-450

(e) 1 / 1e250 == 1e-250

(f) 1 / 1e350 == 1e-350

(g) 1e450/1e350 != 1e450 * 1e-350

(h) 1e250/1e375 == 1e-125

(i) 1e35 / (1e1000 - 1e1000) == 1 / (1e1000 - 1e1000)

(j) 1e1001 > 1e1000 or 1e1001 < 1e1000

(k) 1e1001 > 1e1000 or 1e1001 <= 1e1000


Solution Q10.1.6