Browse Source

DecimalAddSS

1 2 weeks ago
parent
commit
3cb13d07c5
1 changed files with 7 additions and 0 deletions
  1. 7 0
      common/converter.go

+ 7 - 0
common/converter.go

@@ -291,3 +291,10 @@ func DecimalDivSS(v1 string, v2 string) float64 {
 	r := DecimalDivFF(StrToFloat(v1), StrToFloat(v2))
 	return r
 }
+
+func DecimalAddSS(v1 string, v2 string) float64 {
+	v1 = AmountFormat2str(v1)
+	v2 = AmountFormat2str(v2)
+	r := DecimalAddFF(StrToFloat(v1), StrToFloat(v2))
+	return r
+}