Search found 1 match

by baamiis777
Sun Nov 28, 2021 1:46 pm
Forum: ESP-IDF
Topic: Enable double precision trigonometric functions
Replies: 6
Views: 13010

Re: Enable double precision trigonometric functions

I have a problem in the esp32 IDF floating arithmetic.
The operation is:
Float x, y;
x = -0.141
y = -0.555

Abs(x - y) should be 0.414 but the esp32 is resolving it as 0.696.

Can anyone explain what is happening here. It’s a simple calculation of the absolute value of subtracting two negative float ...

Go to advanced search