Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Conversion: double IEEE 754 => decimal ASCII-String

Reply
Thread Tools

Conversion: double IEEE 754 => decimal ASCII-String

 
 
olliH
Guest
Posts: n/a
 
      01-22-2009
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.


 
Reply With Quote
 
 
 
 
olliH
Guest
Posts: n/a
 
      01-23-2009
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_d...ls/binary_bcd/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does python break IEEE 754 for 1.0/0.0 and 0.0/0.0? Grant Edwards Python 11 07-15-2005 01:18 PM
interpret 4 byte as 32-bit float (IEEE-754) franzkowiak Python 9 01-16-2005 05:28 PM
IEEE 754 floating-point "exception" -> C++ exception Lionel B C++ 0 09-23-2004 11:24 AM
IEEE 754 floats Dale Huffman Python 5 09-15-2004 08:42 PM
IEEE-754 double class?? Auronc C++ 0 09-01-2004 08:43 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57