Re: what is happening in C when increment this way?
From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 01/30/05
- Next message: Alf P. Steinbach: "Re: Problems initializing a dynamically allocated 2D array"
- Previous message: CBFalconer: "Re: what is happening in C when increment this way?"
- In reply to: puzzlecracker: "Re: what is happening in C when increment this way?"
- Next in thread: Martin Ambuhl: "Re: what is happening in C when increment this way?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Jan 2005 15:09:40 GMT
puzzlecracker wrote:
> John Valko wrote:
>> puzzlecracker wrote:
>
>>> If you run this program, it will give very unexpected results.
>>> Can anyone explain the nature of this anamaly? (also what is the
... snip ...
>
> I mean %f actually ---- it does print but it gets weirder
> try it withj %f
Seems perfectly normal to me. I get:
0.000000
0.100000
.... snip ....
99.799049
99.899048
99.999046
What do you think the exact value of your 0.1 constant really is?
-- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson
- Next message: Alf P. Steinbach: "Re: Problems initializing a dynamically allocated 2D array"
- Previous message: CBFalconer: "Re: what is happening in C when increment this way?"
- In reply to: puzzlecracker: "Re: what is happening in C when increment this way?"
- Next in thread: Martin Ambuhl: "Re: what is happening in C when increment this way?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|