Skip to content

Commit c37977a

Browse files
author
hero
committed
decimal
1 parent b779729 commit c37977a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/decimal/decimal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/shopspring/decimal"
66
)
77

8-
func main() {
8+
func main() {
99
price, err := decimal.NewFromString("136.02")
1010
if err != nil {
1111
panic(err)
@@ -27,4 +27,4 @@ func main() {
2727
fmt.Println("Taxes:", total.Sub(preTax)) // Taxes: 37.482861375
2828
fmt.Println("Total:", total) // Total: 459.824961375
2929
fmt.Println("Tax rate:", total.Sub(preTax).Div(preTax)) // Tax rate: 0.08875
30-
}
30+
}

0 commit comments

Comments
 (0)