Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

algorithm to know if a number is an integer

// The most basic thing you could do is check if x=floor(x).
  
  if (num != Math.floor(num)) { ... }
Source by math.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #algorithm #number #integer
ADD COMMENT
Topic
Name
6+8 =