freelanceprogrammers.org Forum Index » Java

Re: quick question -I got another idea


View user's profile Post To page top
njzeng Posted: Wed Jan 30, 2002 10:22 pm


Joined: 30 Jan 2002

Posts: 24
Re: quick question -I got another idea
Actually ,there is a difference between the
result we have seen and the actually java presentation
in inner.<br>Sorry for my pool english .i will
express my idea in following example.<br>public class
test{<br>public static void main(String args[]){<br>double
x=-0.39999999999999997 ;<br>System.out.println("sin=
"+Math.sin(x));<br>x=-0.4;<br>System.out.println("sin
="+Math.sin(x));<br>}<br>}<br>and the result
is:<br>sin= -0.38941834230865047<br>sin
=-0.3894183423086505<br>so maybe java know exactly what you want to do .
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help