Here's a small C program that illustrates the same thing.  I'm not a C
programmer, so I hacked the multiplication in there because I couldn't
figure out how to make printf display enough decimals.  This was
compiled on Linux (RedHat 8.0), and exhibits the identical error:

#include "stdio.h"
int main() {
  printf("%1.9f\n", (15.12 + 59.70 - 74.82) * 100000000);
}

Save to 'test.c', run 'gcc test.c', and then './a.out'.  So it's not Java.

cheers,
barneyb

On 12/6/05, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> public class Test {
>     public static void main(String[] args) {
>         System.out.println(15.12 + 59.70 - 74.82);
>     }
> }
>
> Drop that in 'Test.java', run 'javac Test.java', and then 'java Test'
> (assuming you've got a Java SDK on your computer), and you'll see that
> it's certainly not CF doing something weird.  Maybe java's doing it
> wrong, but I'd be surprised.
>
> cheers,
> barneyb
>

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226310
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to