todd.kushner (Todd Kushner)
- Login: todd.kushner
- Email: todd.kushner@jeppesen.com
- Registered on: 09/07/2011
- Last sign in: 09/07/2011
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
09/08/2011
-
12:06 AM Ruby Bug #5294: to_f does not convert floating point number the same as Fortran
- snippet:
a9e20s = %w{
0.9E+21
+0.9E+21
-0.9E+21
.9E+21
+.9E+21
-.9E+21
9E+20
+9E+20
-9E+20
9.E+20
+9.E+20
-9.E+20
9.0E+20
+9.0E+20
-9.0E+20
(etc...)
}
a9e20s.each { |num|
printf "string: '%-10s' float: %50.25f\n"... -
12:04 AM Ruby Bug #5294 (Rejected): to_f does not convert floating point number the same as Fortran
- We were converting some Fortran programs to Ruby, and found the following floating point number format did not convert as Fortran does on input, i.e., on:
'[+-]nn.E[+-]nn'
the exponent is ignored by to_f, but not by Fortran:
s...