You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
godecimal/godecimal_test.go

17 lines
235 B

package godecimal
import (
"testing"
)
func TestDecimal(t *testing.T) {
t.Log(Decimal(2.3333))
}
func TestRound(t *testing.T) {
t.Log(Round(2.3333, 1))
t.Log(Round(2.3333, 2))
t.Log(Round(2.3333, 3))
t.Log(Round(2.3333, 4))
}