Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

floating point

Status
Not open for further replies.

jerome100

Programmer
Joined
Dec 6, 2001
Messages
2
Location
CA
Can someone please help me!!!
How do i display a floating point number like a normal decimal number (e.g. 323.2)
Any help would be appreciated!!
 
You need to use BCD.

Have your math coprocessor convert the floating point to a BCD number (preferably multiplying it by some amount so as to be able to get SOME of the decimal digits) and process the BCD into your desired string. "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top