typed_python
typed_python copied to clipboard
stringification of floats is not identical in the compiler and the interpreter
Sometimes we get a different number of digits. We should try to get it to be identical.
def test_str_of_float(self):
@Entrypoint
def strOf(f):
return str(f)
f = 16123.123123123
assert strOf(f) == str(f)