calculation.js@2.0.7
matters needing attention
Due to release errors, js-accuracy is changed to js-calculation from now on!
This only applies to small projects, and if you're building a large project, recommend that you use math.js to meet your needs!
You need to use Babel with it
install calculation.js
npm install js-calculation
use calculation.js
import calc from 'js-calculation'
calc('0.1 0.1 *') // 0.01
calc('0.1 0.1 * 0.1 -') // -0.09
calc('0.1 0.1 * 0.1 - 0.1 0.1 * +') // -0.08