[aclug-L] Re: C problem redux....
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> Here's the output:
> number: 5.333009
> number: 349440.000000
> Where on earth is it getting 349440.000000 ? I get the same results when
> I try atof(number). Sunday is an odd day, right?
> Larry Bottorff
right. that's because the default precision specifier for floating point
is '%1.6f'. if you don't want all those decimal places printed use
something like '1.2' or '1.0'.
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
[aclug-L] Re: C problem redux...., Tom Hull, 2000/03/05