RE: printf() on decimals

new topic     » goto parent     » topic index » view thread      » older message » newer message

--- Matt Lewis <matthewwalkerlewis at yahoo.com> wrote:

> Try this
> ? 9999999999999990 - 9999999999999990
> ? 9999999999999991 - 9999999999999990
> ? 9999999999999992 - 9999999999999990
> ? 9999999999999993 - 9999999999999990
> ? 9999999999999994 - 9999999999999990
> ? 9999999999999995 - 9999999999999990
> ? 9999999999999996 - 9999999999999990
> ? 9999999999999997 - 9999999999999990
> ? 9999999999999998 - 9999999999999990
> 
> On W2K, I get:
> Result  Correct
>      0       0
>      2       1
>      2       2
>      2       3
>      4       4
>      6       5
>      6       6
>      6       7
>      8       8
> 
> What does Linux report?

Exactly the same:

0
2
2
2
4
6
6
6
8


Press Enter...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu