New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

utils-math

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utils-math

四则运算扩展,解决浮点运算精度问题

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
9
12.5%
Maintainers
1
Weekly downloads
 
Created
Source

math-ext

四则运算扩展,解决浮点运算精度问题

安装

$ yarn add utils-math

使用

import * as mathExt from 'utils-math';

// 加
mathExt.add(0.1, 0.2) === 0.3

// 减
mathExt.sub(0.3, 0.1) === 0.2

// 乘
mathExt.mul(1.01, 1.3) === 1.313

// 除
mathExt.div(0.69, 10) === 0.069

FAQs

Package last updated on 23 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts