This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

safe-float

0.0.5 • Public • Published

SafeFloat

Safe operations for float numbers in JavaScript.

Error ScreenShot

Install

  • yarn add safe-float

Usage

Current SafeFloat support plus, minus, and multiply operations.

const { minus, plus, multiply } = require('safe-float')
 
plus('0.1', '0.2') // Output: '0.3'
minus('0.1', '0.01') // Output: '0.09'
multiply('0.2', '0.1') // Output: '0.02'

Build & Test

npm install
npm test

Readme

Keywords

Package Sidebar

Install

npm i safe-float

Weekly Downloads

230

Version

0.0.5

License

ISC

Last publish

Collaborators

  • vincenting