Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Math Method?

 
matt gilbert
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Math Method?
Dose any know where I can get some info on Math Methods? What is returned if you try to pass an argument that is not a number?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the API:
http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Math.html
 
matt gilbert
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the math class. Is the Math class the same as math method? do you get a NA when you try to pass a non number?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Methods are part of a class. I suppose that it is possible that within the 2,000 or so classes of the API there might be one called "math". The API does tell you what happens when you pass NaN (not a number):
For example, the tan method says:
If the argument is NaN or an infinity, then the result is NaN.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic