G
gabriele renzi
Hi gurus and nubys,
I wonder, if you divide a Float by zero, you get Infinity:=> Infinity
and you can even write code using Infinity like:0
1
2
3
...
but if you try to access it directly you can't:NameError: uninitialized constant Infinity
from (irb):4
Should we be able to access Infinity directly? It seem a strange
unexplicable behaviour to me, that it exists but is not normally accessible.
I wonder, if you divide a Float by zero, you get Infinity:=> Infinity
and you can even write code using Infinity like:0
1
2
3
...
but if you try to access it directly you can't:NameError: uninitialized constant Infinity
from (irb):4
Should we be able to access Infinity directly? It seem a strange
unexplicable behaviour to me, that it exists but is not normally accessible.