UNPKG

big-rat

Version:

A big integer rational number

10 lines (6 loc) 112 B
'use strict' var BN = require('bn.js') module.exports = sign function sign (x) { return x.cmp(new BN(0)) }