Source file src/internal/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  var (
     8  	Log10Pow2        = log10Pow2
     9  	Log2Pow10        = log2Pow10
    10  	ParseFloatPrefix = parseFloatPrefix
    11  )
    12  
    13  func NewDecimal(i uint64) *decimal {
    14  	d := new(decimal)
    15  	d.Assign(i)
    16  	return d
    17  }
    18  
    19  func SetOptimize(b bool) bool {
    20  	old := optimize
    21  	optimize = b
    22  	return old
    23  }
    24  

View as plain text