Thread: Float in MPLAB
View Single Post
  #2   Spotlight this post!  
Unread 18-02-2005, 06:44
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
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
__________________
Team 342 Programming & Control Systems
Good luck and have fun!