soeasymath
v2.0.1
Published
soeasymath.js for Javascript
Downloads
37
Readme
| 计算方法 | 方法名 | 别名| |--|--|--| | 加法 | addition | jiafa,jia | | 减法 |subtraction |jianfa,jian | | 乘法 |multiplication | chengfa,cheng | | 除法 |division | chufa,chu | | 科学计数法 | scientificNotationToString |/ |
基本使用
// 全量引入
import soeasymath from "soeasymath"
// 按需引入
import { subtraction } from "soeasymath"
加法
import { addition } from "soeasymath"
console.log(addition(0.1,0.2,0.3....))
减法
import { subtraction } from "soeasymath"
console.log(subtraction(0.1,0.2,0.3....))
乘法
import { multiplication } from "soeasymath"
console.log(multiplication(0.1,0.2,0.3....))
除法
import { division } from "soeasymath"
console.log(division(0.1,0.2,0.3....))
使用别名
import { jiafa } from "soeasymath"
console.log(jiafa(0.1,0.2,0.3....))
科学计数法
import { scientificNotationToString } from "soeasymath"
console.log(scientificNotationToString(0.000000000000001))