In using 28335 FPU,sometimes I need to use the expression like :
Ualpha=1.0*sqrt(3);
In order to improve the program's efficiency I write the above expression into:
Ualpha=1.0*1.732050808; //sqrt(3)=1.732050808
but Idon't sure how many decimals should I use in order to get the proper precision (Should I use 1.732051 or 1.732050808 or more decimals)?
P.S. I use the watch window in CCS3.3 to see the value of Ualpha=1.0*1.73205080, find that Ualpha=1.732051(only has 6 decimals).
So,can I say that if I use 28335 FPU, I only need to use 6 decimals?
Thanks!