problems with ~G in format
Bug #878163 reported by
Nikodemus Siivola
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Triaged
|
Low
|
Unassigned |
Bug Description
Originally reported as: http://
CL-USER> (format nil "~G" most-positive-
"17976931348623
CL-USER> (format nil "~G" 0.0416546113860
"4.165461138601
CL-USER> (format nil "~G" 9.6000000000000
"9.600000000000
To post a comment you must log in.
I think most-positive- double- float is NOT totally messed up. www.lispworks. com/documentati on/HyperSpec/ Body/22_ ccc.htm
Trying to follow the algorithm verbatim in
http://
I calculate the ~F parameters that would produce that long string.
The only other option is that in ~F it says "If w is omitted, then if the magnitude of arg is so large ... that more than 100 digits would have to be printed, then an implementation is free, at its discretion, to print the number using exponential notation instead"
At any rate this hardly qualifies as medium priority after 9 years of idleness.