472,139 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

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 3757
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.