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

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top