YouTip LogoYouTip

Number Asin

# Java asin() Method [![Image 3: Java Number Class](#)Java Number Class](#) * * * The asin() method is used to return the arcsine value of the specified double-type parameter. ### Syntax double asin(double d) ### Parameters * **d** -- Any primitive data type. ### Return Value Returns the arcsine value of the specified double-type parameter. ### Example public class Test{ public static void main(String args[]){double degrees = 45.0;double radians = Math.toRadians(degrees);System.out.format("The value of pi is %.4f%n", Math.PI);System.out.format("%.4f's arcsine value is %.4f degrees %n", Math.sin(radians), Math.toDegrees(Math.asin(Math.sin(radians))));}} Compile and run the above program, the output result is: The value of pi is 3.14160.7071's arcsine value is 45.0000 degrees * * Java Number Class](#)
← Number AtanNumber Cos β†’