Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Number of b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 25 of 28 Topic 24993 of 28006
Post > Topic >>

Re: Number of bits in C99 float types?

by Ben Bacarisse <ben.usenet@[EMAIL PROTECTED] > Mar 18, 2008 at 11:48 AM

Dom Fulton <wes104@[EMAIL PROTECTED]
> writes:

> Thanks for the input, everyone. It's not quite what I was looking for,
> so perhaps I can restate the problem.
>
> I need to ex****t floating-point data from system A to system B. To do
> this, I need to know the characteristics of the data format on system
> A;

You are still a bit too close to your problem to explain all the
corners of it.  There is no obvious need to know this details you ask
for to ex****t data -- it is done all time simply by converting to
decimal and back.

Your problem may require either more speed or more accuracy (or both)
than this method is capable of.  If accuracy is the only problem
(i.e. you want to loose no more bits than you have to due any
difference in formats been A and B) then I think you can find a way
using frexp and scalbn (repeatedly) to construct a representation that
is ****table but loses no information.

If speed is the primary problem I suspect you will probably need
another route -- and it won't be ****table!.

-- 
Ben.
 




 28 Posts in Topic:
Number of bits in C99 float types?
Dom Fulton <wes104@[EM  2008-03-17 20:13:21 
Re: Number of bits in C99 float types?
Harald van =?UTF-8?b?RMSz  2008-03-17 21:16:44 
Re: Number of bits in C99 float types?
Dom Fulton <wes104@[EM  2008-03-17 20:49:51 
Re: Number of bits in C99 float types?
jacob navia <jacob@[EM  2008-03-17 21:56:45 
Re: Number of bits in C99 float types?
Eric Sosman <Eric.Sosm  2008-03-17 17:12:21 
Re: Number of bits in C99 float types?
jacob navia <jacob@[EM  2008-03-17 22:29:08 
Re: Number of bits in C99 float types?
santosh <santosh.k83@[  2008-03-18 03:19:38 
Re: Number of bits in C99 float types?
Eric Sosman <Eric.Sosm  2008-03-17 18:08:16 
Re: Number of bits in C99 float types?
Dom Fulton <wes104@[EM  2008-03-17 23:13:49 
Re: Number of bits in C99 float types?
jacob navia <jacob@[EM  2008-03-18 00:20:15 
Re: Number of bits in C99 float types?
santosh <santosh.k83@[  2008-03-18 04:58:16 
Re: Number of bits in C99 float types?
jacob navia <jacob@[EM  2008-03-18 00:32:24 
Re: Number of bits in C99 float types?
Keith Thompson <kst-u@  2008-03-18 09:48:42 
Re: Number of bits in C99 float types?
ymuntyan@[EMAIL PROTECTED  2008-03-17 18:16:56 
Re: Number of bits in C99 float types?
user923005 <dcorbit@[E  2008-03-17 18:41:40 
Re: Number of bits in C99 float types?
ymuntyan@[EMAIL PROTECTED  2008-03-17 20:59:40 
Re: Number of bits in C99 float types?
"christian.bau"  2008-03-18 11:06:52 
Re: Number of bits in C99 float types?
Ian Collins <ian-news@  2008-03-18 09:17:21 
Re: Number of bits in C99 float types?
Harald van =?UTF-8?b?RMSz  2008-03-17 22:06:40 
Re: Number of bits in C99 float types?
Harald van =?UTF-8?b?RMSz  2008-03-17 22:09:38 
Re: Number of bits in C99 float types?
Keith Thompson <kst-u@  2008-03-18 09:40:17 
Re: Number of bits in C99 float types?
Dom Fulton <wes104@[EM  2008-03-18 10:50:49 
Re: Number of bits in C99 float types?
santosh <santosh.k83@[  2008-03-18 18:06:22 
Re: Number of bits in C99 float types?
Eric Sosman <esosman@[  2008-03-18 09:33:49 
Re: Number of bits in C99 float types?
Ben Bacarisse <ben.use  2008-03-18 11:48:16 
Re: Number of bits in C99 float types?
Harald van =?UTF-8?b?RMSz  2008-03-18 18:33:38 
Re: Number of bits in C99 float types?
santosh <santosh.k83@[  2008-03-19 00:36:37 
Re: Number of bits in C99 float types?
Keith Thompson <kst-u@  2008-03-18 23:34:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 12:17:05 CST 2008.