commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36878] - [validator] GenericTypeValidator does not accept negative Floats/Doubles
Date Tue, 04 Oct 2005 21:51:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36878>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36878





------- Additional Comments From niallp@apache.org  2005-10-04 23:51 -------
(In reply to comment #2)
> Well, shouldn't it be (Float.MAX_VALUE * -1 -1) ? (Note the additional '-1'...

No, floats don't work like short, integer or long. Its has some bits that store 
the sign, some the exponent and some the numeric part. Float.MAX_VALUE is 
something like 3.40 x 10^38 - I don't know how many digits it stores in the 
numeric bit - but it isnt 38! You'd have to subtract some big number from 
Float.MAX_VALUE before you see a difference.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message