2016-10-10 03:43:44 +02:00
|
|
|
// 20.2.2.34 Math.trunc(x)
|
2017-05-27 17:36:13 +02:00
|
|
|
var $export = require('./_export');
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
$export($export.S, 'Math', {
|
2017-08-14 05:01:11 +02:00
|
|
|
trunc: function trunc(it) {
|
2016-10-10 03:43:44 +02:00
|
|
|
return (it > 0 ? Math.floor : Math.ceil)(it);
|
|
|
|
}
|
2017-08-14 05:01:11 +02:00
|
|
|
});
|