Skip to content
Snippets Groups Projects
Commit 19852424 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix squre root round off

parent 09c6f788
No related branches found
No related tags found
1 merge request!282Fix RoundOff problems
...@@ -101,8 +101,9 @@ def test_sqrt_of_integer(): ...@@ -101,8 +101,9 @@ def test_sqrt_of_integer():
kernel(f=arr_single) kernel(f=arr_single)
code = ps.get_code_str(kernel.ast) code = ps.get_code_str(kernel.ast)
# ps.show_code(kernel.ast)
assert "1.7320508075688772f" in code # 1.7320508075688772935 --> it is actually correct to round to ...773. This was wrong before !282
assert "1.7320508075688773f" in code
assert 1.7 < arr_single[0] < 1.8 assert 1.7 < arr_single[0] < 1.8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment