# math-trunc **Repository Path**: mirrors_kevva/math-trunc ## Basic Information - **Project Name**: math-trunc - **Description**: ES6 Math.trunc() ponyfill - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # math-trunc [![Build Status](https://travis-ci.org/kevva/math-trunc.svg?branch=master)](https://travis-ci.org/kevva/math-trunc) > ES6 [`Math.trunc()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc) [ponyfill](https://ponyfill.com) > Ponyfill: A polyfill that doesn't overwrite the native method ## Install ``` $ npm install math-trunc ``` ## Usage ```js const mathTrunc = require('math-trunc'); mathTrunc(13.37); //=> 13 mathTrunc(-0.123); //=> -0 ``` ## License MIT © [Kevin Mårtensson](https://github.com/kevva)