v / vlib / strconv
Raw file | 37 loc (35 sloc) | 785 bytes | Latest commit hash a8a1e9381
1module strconv
2
3// pow of ten table used by n_digit reduction
4const (
5 ten_pow_table_64 = [
6 u64(1),
7 u64(10),
8 u64(100),
9 u64(1000),
10 u64(10000),
11 u64(100000),
12 u64(1000000),
13 u64(10000000),
14 u64(100000000),
15 u64(1000000000),
16 u64(10000000000),
17 u64(100000000000),
18 u64(1000000000000),
19 u64(10000000000000),
20 u64(100000000000000),
21 u64(1000000000000000),
22 u64(10000000000000000),
23 u64(100000000000000000),
24 u64(1000000000000000000),
25 u64(10000000000000000000),
26 ]!
27)
28
29//=============================================================================
30// Conversion Functions
31//=============================================================================
32const (
33 mantbits64 = u32(52)
34 expbits64 = u32(11)
35 bias64 = 1023 // f64 exponent bias
36 maxexp64 = 2047
37)