S
S
sad09902018-10-26 06:41:59
Java
sad0990, 2018-10-26 06:41:59

How to find out in Java that one real number is greater than or equal to the second?

Hello!
I can't think.
I create a variable To check if two numbers are equal, I write How to check if sum is greater than or equal to 1000?
double epsilon = 1.0e-10;
Math.abs(sum - 1000) <= epsilon

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-10-26
@klim76

But how to check if sum is greater than or equal to 1000?

if(sum >= 1000)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question