Conversion: double IEEE 754 => decimal ASCII-String

O

olliH

Hi,

my problem is that i have to print some results that are given as a
double (64bit IEEE 754) on a LCD.

The problem is the conversion of the double into an ASCII-String


For example:

Double value: 3FF28B4395810625 ==> conversion ==> LCD-output: "1.159"


It would make me very happy if someone can help me.
 
O

olliH

Hi,

thanks a lot for your answer.
The double values are the result of some calculations with the
Floatingpoint Operator 4.0 from Xilinx.
I will display only 7 digits. So I have to multiply the double result
I want to display with 10^7 and convert it into an Integer. This
should be no problem with the Floating Point Operator from Xilinx.

For the conversion I found an easy way, described on the webpage
below:

http://www.doulos.com/knowhow/vhdl_designers_guide/models/binary_bcd/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top