2010-12-03 05:34:57 +01:00
|
|
|
// Copyright 2009 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.
|
|
|
|
|
|
|
|
// export access to strconv internals for tests
|
|
|
|
|
|
|
|
package strconv
|
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
func NewDecimal(i uint64) *decimal {
|
|
|
|
d := new(decimal)
|
|
|
|
d.Assign(i)
|
|
|
|
return d
|
|
|
|
}
|
2010-12-03 05:34:57 +01:00
|
|
|
|
|
|
|
func SetOptimize(b bool) bool {
|
|
|
|
old := optimize
|
|
|
|
optimize = b
|
|
|
|
return old
|
|
|
|
}
|