Where it stands:
Infinity can be represented in IEEE floating point numbers.
Infinity can be represented in Ruby, as evidenced by
(1.0/0.0).infinite?
= 1
Infinity can be represented in sqlite (and probably other databases):
sqlite select * from test_recs;
1|Inf|
Yet it appears that
Fearless Fool wrote in post #980885:
The gist of my question: is there a way to *portably* store and retrieve
Infinity in an ActiveRecord float column?
Okay, first some clarifications:
Infinity is not value and cannot be represented by a float (lower case).
What is actually happening is that
On 10 Feb 2011, at 20:20, Robert Walker li...@ruby-forum.com wrote:
Fearless Fool wrote in post #980885:
The gist of my question: is there a way to *portably* store and retrieve
Infinity in an ActiveRecord float column?
Okay, first some clarifications:
Infinity is not value and cannot
Quoting Frederick Cheung frederick.che...@gmail.com:
On 10 Feb 2011, at 20:20, Robert Walker li...@ruby-forum.com wrote:
Fearless Fool wrote in post #980885:
The gist of my question: is there a way to *portably* store and retrieve
Infinity in an ActiveRecord float column?
Okay,
Robert Walker wrote in post #980944:
Fearless Fool wrote in post #980885:
Okay, first some clarifications:
Regardless of Ruby's somewhat odd implementation; (1.0 / 0.0) is not
equal to infinity.
Oy!
Now you've stepped in it.
5 matches
Mail list logo