bigarith.js
Version:
Do very large math to precision!
102 lines (70 loc) • 2.58 kB
HTML
<html>
<!--Remember to change /v0.0.0/ to the version you are targeting -->
<script src="https://cdn.rawgit.com/osofem/bigarith.js/v0.0.8/bigarith.js"></script> <xscript src="../bigarith.js"></xscript>
<script src="https://cdn.rawgit.com/osofem/assert.js/v0.0.1/assert.js"></script> <xscript src="../../assert/assert.js"></xscript>
<!-- Test initialization -->
<script src="initialization.js"></script>
<!-- Test abs() -->
<script src="abs.js"></script>
<!-- Test add() -->
<script src="add.js"></script>
<!-- Test ceil() -->
<script src="ceil.js"></script>
<!-- Test compare() -->
<script src="compare.js"></script>
<!-- Test compareAbs() -->
<script src="compareabs.js"></script>
<!-- Test divide() -->
<script src="divide.js"></script>
<!-- Test floor() -->
<script src="floor.js"></script>
<!-- Test isEven -->
<script src="iseven.js"></script>
<!-- Test isNegative -->
<script src="isnegative.js"></script>
<!-- Test isPositive -->
<script src="ispositive.js"></script>
<!-- Test isOdd -->
<script src="isodd.js"></script>
<!-- Test max -->
<script src="max.js"></script>
<!-- Test min -->
<script src="min.js"></script>
<!-- Test modulus -->
<script src="modulus.js"></script>
<!-- Test multiply -->
<script src="multiply.js"></script>
<!-- Test negate -->
<script src="negate.js"></script>
<!-- Test square -->
<script src="square.js"></script>
<!-- Test subtract -->
<script src="subtract.js"></script>
<!-- Test random -->
<script src="random.js"></script>
<!-- Test randomInt -->
<script src="randomint.js"></script>
<!-- Test round -->
<script src="round.js"></script>
<!-- Test toFixed -->
<script src="tofixed.js"></script>
<!-- Test tostring -->
<script src="tostring.js"></script>
<!-- Test towords -->
<script src="towords.js"></script>
<!-- Test truncate -->
<script src="truncate.js"></script>
<!-- Test valueOf -->
<script src="valueof.js"></script>
<!-- Unstable -->
<script>console.log("%cTesting the unstable functions! This might take awhile", "color: maroon; font-size: 20pt;");</script>
<!-- Change the xscript to script if you want to test the unstable functions -->
<!-- Test sin -->
<xscript src="sin.js"></xscript>
<!-- Test cos -->
<xscript src="cos.js"></xscript>
<!-- Test tan -->
<xscript src="tan.js"></xscript>
<!-- Test squareRoot -->
<xscript src="squareroot.js"></xscript>
</html>