- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestMulByLog10Log2 (0.12 sec)
-
src/strconv/ftoaryu_test.go
iMath := MulByLog2Log10(x) fMath := int(math.Floor(float64(x) * math.Ln2 / math.Ln10)) if iMath != fMath { t.Errorf("mulByLog2Log10(%d) failed: %d vs %d\n", x, iMath, fMath) } } } func TestMulByLog10Log2(t *testing.T) { for x := -500; x <= +500; x++ { iMath := MulByLog10Log2(x) fMath := int(math.Floor(float64(x) * math.Ln10 / math.Ln2)) if iMath != fMath {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 15 08:44:21 UTC 2021 - 759 bytes - Viewed (0)