Float Experiments

Back to peterdownie.com
Back to Library
Back to PHP Experiment

Floats are used to store large numbers with decimals. However they have limited precision meaning they may not exactly equal to what they have be set to.

Is not a number
doubleNUM1: NAN
NUM2: NAN
Num2 is not a number