Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

big-rational

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-rational - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

2

package.json
{
"name": "big-rational",
"version": "0.9.0",
"version": "0.9.1",
"author": "Peter Olson <peter.e.c.olson+npm@gmail.com>",

@@ -5,0 +5,0 @@ "description": "An arbitrary length rational number library for Javascript",

@@ -119,5 +119,5 @@ BigRational.js

`ceil`
`ceil(toBigInt?)`
---
Rounds up to the nearest integer.
Rounds up to the nearest integer. If the `toBigInt` argument is `true`, then it will return a bigInteger instead of a bigRational.

@@ -146,5 +146,5 @@ - `bigRat(12345.4).ceil().equals(12346)`

`floor`
`floor(toBigInt?)`
---
Rounds down to the nearest integer.
Rounds down to the nearest integer. If the `toBigInt` argument is `true`, then it will return a bigInteger instead of a bigRational.

@@ -233,5 +233,6 @@ - `bigRat(987.99999).floor().equals(987)`

`round`
`round(toBigInt?)`
---
Rounds a number to the nearest integer. If the number is exactly half-way between two integers, it will round up.
If the `toBigInt` argument is `true`, then it will return a bigInteger instead of a bigRational.

@@ -238,0 +239,0 @@ - bigRat(54345.12566).round().equals(54345)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc