Question: What is the equivalent of function floor() at Perl?
Answer: Simple answer is to use int() function. This will just remove the decimal portion from the provided number. Example code using int() to serve like floor is,
Answer: Simple answer is to use int() function. This will just remove the decimal portion from the provided number. Example code using int() to serve like floor is,
print int(10.9);
Comments