summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/floor.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/math/floor.js')
-rw-r--r--node_modules/locutus/php/math/floor.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/floor.js b/node_modules/locutus/php/math/floor.js
new file mode 100644
index 0000000..6d3655b
--- /dev/null
+++ b/node_modules/locutus/php/math/floor.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function floor(value) {
+ // discuss at: http://locutus.io/php/floor/
+ // original by: Onno Marsman (https://twitter.com/onnomarsman)
+ // example 1: floor(8723321.4)
+ // returns 1: 8723321
+
+ return Math.floor(value);
+};
+//# sourceMappingURL=floor.js.map \ No newline at end of file