math-grand

3.0.5 • Public • Published

功能概述

  • 计算四则表达式的值

例子

const math = require("math-grand");
let data = {
    //公式
    formula: '(x+y)/z',
    //参数
    data: {
        x: 0.1,
        y: 0.2,
        z: 0.1
    }
};
let result = math(data);
console.log(result);

Readme

Keywords

Package Sidebar

Install

npm i math-grand

Weekly Downloads

9

Version

3.0.5

License

ISC

Unpacked Size

7.39 kB

Total Files

5

Last publish

Collaborators

  • grand-zhang