In 1.3.2,
(format nil "~$" -32.17)
--32.17
Negative values are getting a double minus sign.
The right fix seems to be, in 'format-dollars', to pass '(abs number)' rather than 'number' to 'sys::flonum-to-string'.
-- Scott
On 4/25/16 00:50, Scott L. Burson wrote:
In 1.3.2,
(format nil "~$" -32.17)
--32.17
Negative values are getting a double minus sign.
The right fix seems to be, in 'format-dollars', to pass '(abs number)' rather than 'number' to 'sys::flonum-to-string'.
Yes, I concur that this should be easy to accomplish.
Filed as issue [409][].
Thanks for the report!
[409]: http://abcl.org/trac/ticket/409
armedbear-devel@common-lisp.net