Z
Zunbeltz Izaola
Hi,
I have a problem with % operation. It returns a incorrect value in
this case:
1.0
where the returned value should be -2.77555756156e-17.
The documentation says that there is same errors due to roundoff and
suggest to use fmod from math module.
-2.77555756156e-17
Ok, but when i try the following:
-0.32768000000000003
but i want to get the result % gives
0.67232000000000003
what is going wrong? Any suggestions
Thanks in advance
I have a problem with % operation. It returns a incorrect value in
this case:
1.0
where the returned value should be -2.77555756156e-17.
The documentation says that there is same errors due to roundoff and
suggest to use fmod from math module.
-2.77555756156e-17
Ok, but when i try the following:
-0.32768000000000003
but i want to get the result % gives
0.67232000000000003
what is going wrong? Any suggestions
Thanks in advance