This commit is contained in:
2023-08-01 18:50:14 +03:00
parent c565810fc0
commit 0648d5b9b4
2 changed files with 11 additions and 0 deletions

View File

@@ -248,6 +248,14 @@ func TestSplitFloat2(t *testing.T) {
}
func TestSplitFloat3(t *testing.T) {
f := 2806262383595.7373 // округляет вниз .6985
n := SplitFloat(f, 4)
fmt.Printf("int: %d, frac: %d\n", n.Int, n.Frac)
}
func TestBitOps(t *testing.T) {
var b byte = 255