|
|
|
Issue Type:
|
Bug
|
Assignee:
|
Thomas E Enebo
|
Created:
|
25/Oct/12 4:08 PM
|
Description:
|
Ruby 1.9(.3?) supports passing a rational value for the µsec portion of a time, as follows:
However, internally we resolve the rational to a double and then normalize that to a long nsec value. This leads to cases where we fail to preserve the exact time value passed in if it can't be represented exactly in a double.
A simple script (originally found while investigating JRUBY-6964) illustrates fractional µsec values that fail to roundtrip properly:
The numbers are all rationals that have repeating decimal representations. A few examples from the above script's output:
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Charles Oliver Nutter
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email