Other Parts Discussed in Thread: CONTROLSUITE
Hi all,
I am currently using F28335 in my project.
Due to project requirement, I need to have double precision float accuracy for square root and trigonometric function.
In my application, I have included math.h header file.
A sample of the code is below.
#include "math.h"
long double f1 = 1.23456789L;
long double f2 = 0.0L;
f2 = sqrt(f1);
However, the returned value of f2 is in single precision float.
Is there any way to get double precision accuracy without writing my own mathematical function?
Thanks.
Kelvin