Floor Function |
System.Math
Math.Floor( d )
Returns a Double containing the largest integer less than or equal to the argument d
Returns the largest integer less than or equal to the argument d
Math.Floor(12.9) ' Returns 12 Math.Floor(-12.1) ' Returns -13
Because this function can accept numeric values only, you may want to check the value you pass using the IsNumeric function to prevent generating an error.
This is a Shared member, so it can be used without creating any objects.
The Floor function is new to the .NET Framework.
Ceiling Function