Search code examples
vbamathmath-functions

Function to Remove the Decimal Places


What is the JavaScript Math.Floor() equivalent in VBA?. this function should remove all the decimal places and return only an integer.


Solution

  • Of what i remember use the Int() function. ex

    int(2.99) = 2 ; int(2.1)=2
    

    and so on.