$floor
Update records by setting the value of a numeric column to the largest integer less than or equal to its current value. The $floor method is used to modify numeric fields by rounding down to the nearest whole number, ensuring that values are always rounded down rather than up. This is useful when you want to ensure the value doesn’t exceed a certain integer threshold.
Last updated