Page 1 of 1
float type
Posted: Fri Mar 18, 2011 11:54 am
by GreenE
Hi Guys,
I need to use floats in my calculations. Does NB Eclipse recognize float? Do we have a math library file available here?
thanks
Re: float type
Posted: Fri Mar 18, 2011 12:12 pm
by tod
Yes NB supports float
float somevar; // 4bytes I believe in the current implementation
double someOthervar; //8 bytes in the current implementation
If you want math routines
#include <math.h>
The standard c library routines are there.
Re: float type
Posted: Fri Mar 18, 2011 1:34 pm
by rnixon
Hi GreenE,
Had you tried to multiply floats and it did not work correctly? Just wondering why you had suspected floating point was not supported.