Computer Science, asked by naazpreet13, 5 hours ago

wap in java to find the floor value of a number stored in a variable using math class.​

Answers

Answered by neena6380
0

Answer:

ok is the monitor for this one and it 6F a good morning and is a good thing I am not sure if you have any interest or if I can get some

Answered by kaashviGoel
1

Answer:

Java has had several advanced usage application including working with complex calculations in physics, architecture/designing of structures, working with Maps and corresponding latitudes/longitudes, etc.

In this Java tutorial, you will learn:

Math.abs in Java

Math.round in Java

Math.ceil and Math.floor in Java

Math.min in Java

Explanation:

public class abc{

public static void main(String args[]) {

int i1 = 27;

int i2 = -45;

double d1 = 84.6;

double d2 = 0.45;

System.out.println("Absolute value of i1: " + Math.abs(i1));

System.out.println("Absolute value of i2: " + Math.abs(i2));

System.out.println("Absolute value of d1: " + Math.abs(d1));

System.out.println("Absolute value of d2: " + Math.abs(d2));

}

}

Similar questions