August 2001
Intermediate to advanced
656 pages
18h 5m
English
Floor Function
System.Math
Math.Floor(d)d
Use: Required
Data Type: Double
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 only accept numeric values, 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.
Read now
Unlock full access