Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultDecPrec = 28 DefaultDecRoundingMode = big.ToNearestEven )
View Source
const ( RoundingModeCeil = "ceil" RoundingModeDown = "down" RoundingModeFloor = "floor" RoundingModeHalfUp = "half.up" RoundingModeHalfEven = "half.even" RoundingModeUp = "up" )
View Source
const ( FloatID = "float" DefaultFloatPrec = 113 )
View Source
const ( DefaultDateLayout = "[weekday/abbr] [month/abbr] [day] [year]" DefaultTimeLayout = "[hour/12]:[minute]:[second][period/alt] [offset-zone]" DefaultDateTimeLayout = DefaultDateLayout + " " + DefaultTimeLayout )
View Source
const DecID = "dec"
View Source
const RandID = "rand"
View Source
const TimeID = "time"
Variables ¶
This section is empty.
Functions ¶
func DecRounder ¶
func DecRounder(rm big.RoundingMode) apd.Rounder
Types ¶
type Dec ¶
type Dec struct { Math *apd.Context RoundingMode big.RoundingMode }
func (*Dec) GetRoundingMode ¶
func (*Dec) SetRoundingMode ¶
Click to show internal directories.
Click to hide internal directories.