import{ Decimal }from'decimal.js'exportfunctionadd(x, y){if(!x){
x =0}if(!y){
y =0}const xx =newDecimal(x)const yy =newDecimal(y)return xx.plus(yy).toNumber()}// 减exportfunctionsub(x, y){if(!x){
x =0}if(!y){
y =0}const xx =newDecimal(x)const yy =newDecimal(y)return xx.sub(yy).toNumber()}// 除exportfunctiondiv(x, y){if(!x){
x =0}if(!y){return0}const xx =newDecimal(x)const yy =newDecimal(y)return xx.div(yy).toNumber()}//乘exportfunctionmul(x, y){if(!x){
x =0}if(!y){
y =0}const xx =newDecimal(x)const yy =newDecimal(y)return xx.mul(yy).toNumber()}