🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #765

Re: float precision

#765
From: TiTi
Date: Thu, 13 Apr 2000 00:00
30 lines
1718 bytes
<dataman@cyberdude.com> wrote in message
news:38F5D7E6.153591F2@cyberdude.com...
> I am really confused about float precision ..officially it's 3.4 *
> (10**-38) to 3.4 * (10**+38)
> But, that does not help me much even it confuse me more ....
> Here is my problem:
> I need to define a world of 10 000 000 units .  I need to use float for
> that . I think to use only the positive part (but will depend from the
> answer of my question).
> What precision (after the dot ) can i expect  ?




Use type 'double' instead of float, it has a higher precision. But I'm not
sure if that will solve your problems.




TiTi
--
For comp.lang.c++:
  * Read Shiva's "Welcome to comp.lang.c++" before posting to that
newsgroup:
   http://www.slack.net/~shiva/welcome.txt
  * FAQ (frequently asked questions) :
http://marshall-cline.home.att.net/cpp-faq-lite/
"There are two kinds of people: those who know, and those who don't know. I
generally prefer those who don't know." - TiTi
Technical Details
Message-ID: <8d4mj4$616$1@trex.antw.online.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38F5D7E6.153591F2@cyberdude.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114592,fcf1bc31a1ccc99f
X-Google-Attributes: gid114592,public
X-Google-Thread: fdcad,fcf1bc31a1ccc99f
X-Google-Attributes: gidfdcad,public
X-Google-Thread: 109fba,fcf1bc31a1ccc99f
X-Google-Attributes: gid109fba,public
From: "TiTi" <cenTipod@anTi.com>
Subject: Re: float precision
Date: 2000/04/13
Message-ID: <8d4mj4$616$1@trex.antw.online.be>
X-Deja-AN: 610691485
References: <38F5D7E6.153591F2@cyberdude.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2918.2701
Organization: c++@void.com
X-MSMail-Priority: Normal
Reply-To: "TiTi" <cenTipod@anTi.com>
Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c++,fr.comp.lang.c++