Documentation
¶
Index ¶
- Constants
- Variables
- func BigDecimalValueOf(val types.Long) *bigDecimal
- func BigIntegerValueOf(val types.Long) *bigInteger
- func Init()
- func NewBigDecimalString(val string) *bigDecimal
- func NewBigIntegerBytes(val []byte) *bigInteger
- func NewBigIntegerLong(val types.Long) *bigInteger
- func NewBigIntegerString(val string) *bigInteger
- func NewBigIntegerStringRadix(val string, radix types.Int) *bigInteger
- func NumberOfLeadingZeros(i types.Int) types.Int
- func NumberOfLeadingZerosForLong(i types.Long) types.Int
- func NumberOfTrailingZeros(i types.Int) types.Int
- type RoundingMode
Constants ¶
View Source
const ( ROUND_UP = RoundingMode(iota) ROUND_DOWN ROUND_CEILING ROUND_FLOOR ROUND_HALF_UP ROUND_HALF_DOWN ROUND_HALF_EVEN ROUND_UNNECESSARY )
Variables ¶
View Source
var ( ZERO = newBigInteger([]types.Int{0}, 0) ONE, TWO, TEN *bigInteger NEGATIVE_ONE = BigIntegerValueOf(-1) )
Functions ¶
func BigDecimalValueOf ¶
func BigIntegerValueOf ¶
BigIntegerValueOf if |val| <= 16, return posConst cache
func NewBigDecimalString ¶
func NewBigDecimalString(val string) *bigDecimal
func NewBigIntegerBytes ¶
func NewBigIntegerBytes(val []byte) *bigInteger
func NewBigIntegerLong ¶
func NewBigIntegerString ¶
func NewBigIntegerString(val string) *bigInteger
Types ¶
type RoundingMode ¶
Click to show internal directories.
Click to hide internal directories.