floor
Round value down
floor(x);
will return the value of the number rounded down. There is no custom return_type, the function always returns an integer.
floor(5.7); //5
floor(-4.2); //-5
Last updated
floor(x);
will return the value of the number rounded down. There is no custom return_type, the function always returns an integer.
floor(5.7); //5
floor(-4.2); //-5
Last updated