RE: printf() on decimals
- Posted by eugtk at yahoo.com
Jul 01, 2003
--- 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
Hmmm. If I try this with Ruby, I get:
0
1
2
3
4
5
6
7
8
So I guess if you're interested in greater accuracy,
then that's the way to go.
Irv
|
Not Categorized, Please Help
|
|