Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix in cl-format #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bug fix in cl-format #1

wants to merge 1 commit into from

Conversation

bwanab
Copy link

@bwanab bwanab commented Jan 28, 2012

Hi Tom, I hope I'm doing this right :)

I was using cl-format on some big numbers (financial software) and found a strange bug:

(cl-format nil "~12,3F" 22222222.6674)
"22222222.667"
user> (cl-format nil "~12,3F" 22222222.6675)
; Evaluation aborted....

It turns out that when the numbers are big enough, when it tries to do the conversion using Integer/valueOf, the values are too large. In my fix, I just changed it to Long/valueOf and it fixes it.

Best regards and thanks for contributing this nice package.

Bill Allen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant