Re: doubles or not
From: George Hester (hesterloli_at_hotmail.com)
Date: 04/16/04
- Next message: I. R. Khan: "ifstream getline() problem"
- Previous message: George Hester: "Re: Classes COM+ No Static promise"
- In reply to: bdg: "doubles or not"
- Next in thread: ak: "Re: doubles or not"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 15 Apr 2004 21:48:16 -0400
One place you would not want to use a double is something like this:
double i;
for (i = 1.0; i != 2.0; i += 0.2){}
I don't think this will ever stop.
-- George Hester __________________________________ "bdg" <ased@noo.com> wrote in message news:emhgrAdIEHA.3988@tk2msftngp13.phx.gbl... > "Avoid using doubles when integers will do..." > > How could this be true? Since whenever we have to represent a number to > certain extent of accuracy of certain digits after decimal point and when > even a float can not be enough for this, we may need doubles. Am I missing > something? > > Thanks! > > >
- Next message: I. R. Khan: "ifstream getline() problem"
- Previous message: George Hester: "Re: Classes COM+ No Static promise"
- In reply to: bdg: "doubles or not"
- Next in thread: ak: "Re: doubles or not"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|