Source file src/strconv/export_test.go

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package strconv
     6  
     7  type Uint128 = uint128
     8  
     9  var (
    10  	BaseError        = baseError
    11  	BitSizeError     = bitSizeError
    12  	MulLog10_2       = mulLog10_2
    13  	MulLog2_10       = mulLog2_10
    14  	ParseFloatPrefix = parseFloatPrefix
    15  	Pow10            = pow10
    16  	Umul128          = umul128
    17  	Umul192          = umul192
    18  )
    19  
    20  func NewDecimal(i uint64) *decimal {
    21  	d := new(decimal)
    22  	d.Assign(i)
    23  	return d
    24  }
    25  
    26  func SetOptimize(b bool) bool {
    27  	old := optimize
    28  	optimize = b
    29  	return old
    30  }
    31  

View as plain text