JOIN
Get Time
forums   
Search | Watch Thread  |  My Post History  |  My Watches  |  User Settings
View: Flat (oldest first)  | Threaded  | Tree
Previous Thread  |  Next Thread
Re: is 123456123456.1234588623046875 can be store in double without rounding (response to post by AdmireCarmack) | Reply
I think misof meant 15 digits of mantissa in scientific representation, like 1.234561234561234588623046875e11.
If you keep only 15 digits of mantissa it will become 1.234561234561235e11 which can be stored in double with error less than unit of smallest digit.
Re: is 123456123456.1234588623046875 can be store in double without rounding (response to post by AdmireCarmack) | Reply
You seem to be right:

$ cat > Test.java
class Test {
public static void main (String[] a) {
System.out.printf ("%f\n", 123456123456.1234588623046875);
}
}
$ javac Test.java
$ java Test
123456123456.123460
$
is 123456123456.1234588623046875 can be store in double without rounding | Reply
in misof's article, he said 15 decimal digits can be expreesed in mantissa , but this number is far beyond 15 decimal digits.
so i think it can't be store in double without rounding.
is it correct?

btw, misof's article is great, i get a lot of benefit from it.
RSS