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/math_test.go

27 lines
359 B

package godecimal
import "testing"
func TestMath(t *testing.T) {
t.Log(Abs(111))
t.Log(Abs(-111))
t.Log(Floor(3.4))
t.Log(Floor(3.5))
t.Log(Ceil(3.4))
t.Log(Ceil(3.5))
t.Log(Round(3.4))
t.Log(Round(3.5))
t.Log(RoundPoint(3.4))
t.Log(RoundPoint(3.5))
t.Log(RoundPoint(3.14))
t.Log(RoundPoint(3.14159))
t.Log(Max(4, 3))
t.Log(Min(4, 3))
}