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
Python's builtin round function is funny since it always coerces to float #188
Comments
This comment has been minimized.
This comment has been minimized.
comment:4
Fixed
|
tobiasdiez
pushed a commit
to tobiasdiez/sage
that referenced
this issue
Feb 22, 2024
…essbar2 Constrain progressbar2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From Susan Addington:
Here is some further I/O that illustrates more what is going on:
Note that round is a python builtin and it always outputs a float.
It would make way more sense if round on a mpfr or complex number, etc.,
were to output a number of that type. Thus in SAGE the round function
should be replaced by our own, which first tries to call a
_round_
function,and if that doesn't work, calls the builtin round function.
Component: basic arithmetic
Issue created by migration from https://trac.sagemath.org/ticket/188
The text was updated successfully, but these errors were encountered: