Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need help in floating point numbers

Status
Not open for further replies.

praveen_palaparthi

Full Member level 1
Joined
Feb 15, 2008
Messages
98
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
2,214
HI friends

I m working on pic 16f917 micro controller .My project is to display battery back up on 3 bit LCD.I know the AH of the battery and by dividing AH with current i will get backup time.I am getting backup time in real numbers,but microcontroller is not able to hold real number.

For example
if battery AH is 60 and current it is giving is 22 amps den time=AH/current

den time=2.72 hours.I want to display this on LCD.BUt in microcontroller this value is not taking even if i declared time variable as a float type.

Tell me how to handle real values using microcontroller.
 

I noticed from a previous post, that you know about C compilers. They are dealing with the float numbers, not the
microprocessor, that only performs 8-bit add, sub and shift. Check your compiler doc for details.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top