aspose file tools*
The moose likes Java in General and the fly likes Math class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Math class" Watch "Math class" New topic
Author

Math class

rohith das
Greenhorn

Joined: Sep 22, 2009
Posts: 8
Hai Friends,


Can you please tell me how to use java.math class

for example how to use sin() function .
can you please provide me an example.

thanks in advance ,
rohith


_rohith
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
The Math class is a class that provides static utility functions for mathematical operations, such as round, floor, ceil etc.

To use it, you don't need an instance, since all methods are static.


JDBCSupport - An easy to use, light-weight JDBC framework -
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
System.out.println("sin 123 = " + Math.sin(123));

Beware: make sure to go through the documentation for the methods and check the units required.
rohith das
Greenhorn

Joined: Sep 22, 2009
Posts: 8
Thank you both Sebastian Janisch, Campbell Ritchie it helped me.


rohith

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Math class