UNPKG

nstatistics

Version:

Solve equations using numerical methods, linear álgebra and solver of linear equation system

8 lines (7 loc) 219 B
'use strict'; module.exports = function ( item, n ) { Number.prototype.truncate = function ( n ) { return Math.floor( this * Math.pow( 10, n ) ) / Math.pow( 10, n ); }; return item.truncate( n ); };