Hello. I am looking for a function in Java that performs the same task as the Int() function in VBScript. The Int() function returns the integer part of a specified number.
floor() and ceil() are the closest. you could easily write your own int() or fix() function which would return the floor for positive numbers and the ceil for negative numbers. Check out the Math Class Function Reference
Bookmarks