Closed sabracrolleton closed 7 years ago
Hello!
Thank you for contributing by filling up this issue.
Regarding the second point, it seems I can't do much from my side, since you're passing 212322.4473 which is likely a single-float in your CL implementation. It should work if you use 212322.4473d0, which usually represents a double-float.
Have now validated that the second point is not the fault of cl-strings. Something in my lisp image had changed. I restarted sbcl and it now works (I am usually running double-floats as defaults and did not catch that some other library was trying to change things.)
On Sat, Oct 8, 2016 at 1:40 PM, Diogo Franco notifications@github.com wrote:
Regarding the second point, it seems I can't do much from my side, since you're passing 212322.4473 which is likely a single-float in your implementation. It might work if use 212322.4473d0, which usually represents a double-float.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/diogoalexandrefranco/cl-strings/issues/5#issuecomment-252447180, or mute the thread https://github.com/notifications/unsubscribe-auth/AE1dLW5cktRmJDsxOSBwLUYYaFI__r-Wks5qx_-0gaJpZM4KRyOY .
Awesome. I'll close this issue, thanks for the report!
First, thank you for the library. It means that I do not need to have both decimals and wu-decimal in the same package.
That said, two specific issues in parsing numbers.
(cl-strings:format-number 212322.4473 :precision 4 :decimal-separator #. :order-separator #\,) "212,322.4500"