UNPKG

tough-rational

Version:

Rational class using BigInt with fallback to bignumber.js

4 lines (2 loc) 73 B
'use strict'; module.exports = (n) => n.minus(n.dividedToIntegerBy(1));