2017-08-12 21:02:43 +02:00
|
|
|
// Copyright 2017 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
|
|
|
|
|
|
2025-10-14 23:24:19 -04:00
|
|
|
type Uint128 = uint128
|
|
|
|
|
|
2017-08-12 21:02:43 +02:00
|
|
|
var (
|
2025-10-14 23:24:19 -04:00
|
|
|
BaseError = baseError
|
|
|
|
|
BitSizeError = bitSizeError
|
|
|
|
|
MulLog10_2 = mulLog10_2
|
|
|
|
|
MulLog2_10 = mulLog2_10
|
|
|
|
|
ParseFloatPrefix = parseFloatPrefix
|
|
|
|
|
Pow10 = pow10
|
|
|
|
|
Umul128 = umul128
|
|
|
|
|
Umul192 = umul192
|
2017-08-12 21:02:43 +02:00
|
|
|
)
|
2025-10-14 23:24:19 -04:00
|
|
|
|
|
|
|
|
func NewDecimal(i uint64) *decimal {
|
|
|
|
|
d := new(decimal)
|
|
|
|
|
d.Assign(i)
|
|
|
|
|
return d
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func SetOptimize(b bool) bool {
|
|
|
|
|
old := optimize
|
|
|
|
|
optimize = b
|
|
|
|
|
return old
|
|
|
|
|
}
|