mirror of
https://github.com/photonstorm/phaser
synced 2025-01-13 13:48:53 +00:00
8 lines
161 B
JavaScript
8 lines
161 B
JavaScript
var Floor = function (a, b, epsilon)
|
|
{
|
|
if (epsilon === undefined) { epsilon = 0.0001; }
|
|
|
|
return Math.floor(value + epsilon);
|
|
};
|
|
|
|
module.exports = Floor;
|