Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Rational Field

node v15.14.0
version: 4.0.0
endpointsharetweet
require('regenerator-runtime/runtime'); const QQ = require('@aureooms/js-rational-field').default;
QQ.from(1,3).toString();
QQ.from(1,3).toFixed();
QQ.from('123.3123|457').toString();
615945167/4995000
QQ.from('912834328048230912.123898743267|129384793274237811').mul(QQ.from(10)).toString()
6339127278112714661187947327909017171315107601/6944444444444444437500000000
QQ.from('6339127278112714661187947327909017171315107601/6944444444444444437500000000').toFixed();
QQ.from(355,113).toFixed();
0.1 + 0.2
QQ.from('0.1').add(QQ.from('0.2')).toFixed();
Loading…

no comments

    sign in to comment