Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Java
algorithm to know if a number is an integer
doubleOrt
Programming language:
Java
2021-05-10 02:19:54
0
Q:
algorithm to know if a number is an integer
Raphael
Code:
Java
2021-05-06 11:17:41
// The most basic thing you could do is check if x=floor(x). if (num != Math.floor(num)) { ... }
0
Tags
number
int
algorithm
Related
how to check if number is integer in java
find the maximum number from an int Array
ujava saum of positive integers
checking if a given integer is a prime number java
java accept an integer from the user. Then indicate whether it is a perfect number or not.
java test if a string is a int
java check if int
New to Communities?
Join the community