divide and log in Codevision

Status
Not open for further replies.

HAIDE

Junior Member level 3
Joined
Feb 9, 2012
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
GERMANY
Activity points
1,525
divide and log function in Codevision

Hi,
Any one know what is the problem of following code, I dunno why it is not working in AVR Codevision
float c;
int a=30;
int b=500;
c=(float)exp(a/b);
sprintf(in_display,"c= %f", c);
lcd_gotoxy(0,0);
lcd_puts(in_display);
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…