|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
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; ChuckB |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New math functions? | KVermilion | Programming | 8 | 17-01-2005 10:38 |
| MPLAB Variable Simulator? | Chris_Elston | Programming | 3 | 18-02-2004 12:08 |
| using the MPLAB IDE MPLAB SIM simulator | WizardOfAz | Programming | 1 | 03-11-2003 01:24 |