Java equivalent of VBScript Int()
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.
Thanks to anyone with any suggestions.
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
Thanks russell. That's perfect.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)