README
Usage
import * as frac from './node_modules/@clubfest/frac/frac.js'
// 1/2 + 1/4 + 1 = 1.75
console.log(frac.make(1, 2).plus(frac.make(1, 4)).plus(1).toFloat());
A library to manipute fractions.
<script type="module">
import clubfestFrac from 'https://cdn.skypack.dev/@clubfest/frac';
</script>
import * as frac from './node_modules/@clubfest/frac/frac.js'
// 1/2 + 1/4 + 1 = 1.75
console.log(frac.make(1, 2).plus(frac.make(1, 4)).plus(1).toFloat());