X7ROOT File Manager
Current Path:
/opt/golang/1.17.2/src/strconv
opt
/
golang
/
1.17.2
/
src
/
strconv
/
📁
..
📄
atob.go
(974 B)
📄
atob_test.go
(1.89 KB)
📄
atoc.go
(3.02 KB)
📄
atoc_test.go
(6.83 KB)
📄
atof.go
(15.76 KB)
📄
atof_test.go
(23.6 KB)
📄
atoi.go
(7.61 KB)
📄
atoi_test.go
(17.04 KB)
📄
bytealg.go
(419 B)
📄
bytealg_bootstrap.go
(430 B)
📄
ctoa.go
(1 KB)
📄
ctoa_test.go
(1.45 KB)
📄
decimal.go
(11.03 KB)
📄
decimal_test.go
(3.01 KB)
📄
doc.go
(1.87 KB)
📄
eisel_lemire.go
(41.39 KB)
📄
example_test.go
(8.18 KB)
📄
export_test.go
(240 B)
📄
fp_test.go
(2.91 KB)
📄
ftoa.go
(13.97 KB)
📄
ftoa_test.go
(9.24 KB)
📄
ftoaryu.go
(15.69 KB)
📄
ftoaryu_test.go
(759 B)
📄
internal_test.go
(618 B)
📄
isprint.go
(11.06 KB)
📄
itoa.go
(5.3 KB)
📄
itoa_test.go
(5.67 KB)
📄
makeisprint.go
(4.83 KB)
📄
quote.go
(16.59 KB)
📄
quote_test.go
(9.46 KB)
📄
strconv_test.go
(2.86 KB)
📁
testdata
Editing: ftoaryu_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package strconv_test import ( "math" . "strconv" "testing" ) func TestMulByLog2Log10(t *testing.T) { for x := -1600; x <= +1600; x++ { 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 { t.Errorf("mulByLog10Log2(%d) failed: %d vs %d\n", x, iMath, fMath) } } }
Upload File
Create Folder