Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Float in MPLAB (http://www.chiefdelphi.com/forums/showthread.php?t=34757)

capenga 16-02-2005 14:01

Float in MPLAB
 
How can I use float variables in MPLAB?? I've tried, tried, tried, but really don't know how to do it...

Someone knows how?

cbolin 18-02-2005 06:44

Re: Float in MPLAB
 
Hi,
Not sure what you are really asking. Are you trying to create a float type variable, load it with a value and use it in an equation? Are you getting errors when you do this?

Here is a short snipped of code using a float. Let us know if you are asking something different.

Code:

float number = 2.314;
float answer;
answer = number * 1.5;

Regards,
ChuckB


All times are GMT -5. The time now is 23:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi