The Wayback Machine - https://web.archive.org/web/20170626174803/https://github.com/lodash/lodash/blob/master/floor.js
Skip to content
Permalink
6cb3460 Feb 6, 2017
25 lines (22 sloc) 492 Bytes
import createRound from './.internal/createRound.js'
/**
* Computes `number` rounded down to `precision`.
*
* @since 3.10.0
* @category Math
* @param {number} number The number to round down.
* @param {number} [precision=0] The precision to round down to.
* @returns {number} Returns the rounded down number.
* @example
*
* floor(4.006)
* // => 4
*
* floor(0.046, 2)
* // => 0.04
*
* floor(4060, -2)
* // => 4000
*/
const floor = createRound('floor')
export default floor
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.