ClassSystem.Math SyntaxMath.Floor(d)
DescriptionThe Floor function returns the largest integer less than or equal to the argument d. ExampleMsgBox(Math.Floor(12.9)) ' Displays 12 MsgBox(Math.Floor(-12.1)) ' Displays -13 Usage at a GlanceThis is a shared member of the System.Math class, so it can be used without an instance. Version DifferencesThe Floor function did not exist in VB 6. See AlsoCeiling Function |