-
Notifications
You must be signed in to change notification settings - Fork 72
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
The digits function returns incorrect results for negative numbers #92
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
digits()
function doesn't always return correct results for negative numbers:And so on. It does appear to work correctly for positive numbers, so a simple workaround is to call
neg()
to change the sign before callingdigits()
, but I'll see if I can figure out a proper fix.The text was updated successfully, but these errors were encountered: