float type

Discussion to talk about software related topics only.
Post Reply
GreenE
Posts: 5
Joined: Tue Feb 22, 2011 1:39 pm

float type

Post 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
User avatar
tod
Posts: 587
Joined: Sat Apr 26, 2008 8:27 am
Location: Southern California
Contact:

Re: float type

Post 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.
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: float type

Post 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.
Post Reply