469,602 Members | 1,659 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

IEEE floating point conversion to decimal and back for a C program

Hello,
I am looking for a function/utility to read in an IEEE value and
convert this to decimal, for testing purposes. Also, I need to
convert decimal values to IEEE values to send out on a network.

This is to be written in C, compiled under Borland C++5.2.

Thanks,
Nov 13 '05 #1
1 3648
GooglePoster wrote:
Hello,
I am looking for a function/utility to read in an IEEE value and
convert this to decimal, for testing purposes. Also, I need to
convert decimal values to IEEE values to send out on a network.


What do you mean by IEEE value? If you mean IEEE floats then it is
almost certain that your hardware platform stores floats in this format
already.

Also, what do you mean by decimal? Do you mean a textual represntation
of the floating point number? If so then the standard printf() can
display floats like this.
--
Paul Richards

Sun Microsystems, Advanced Development
New Technology Researcher

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Roger Leigh | last post: by
11 posts views Thread by Grant Edwards | last post: by
5 posts views Thread by Anton Noll | last post: by
687 posts views Thread by cody | last post: by
54 posts views Thread by Andy | last post: by
33 posts views Thread by dis_is_eagle | last post: by
13 posts views Thread by revuesbio | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.