Lines Matching defs:decimal
14 type decimal struct { struct
15 d [800]byte // digits
16 nd int // number of digits used
17 dp int // decimal point
18 neg bool
19 trunc bool // discarded nonzero digits beyond d[:nd]
22 func (a *decimal) String() string {
71 func trim(a *decimal) {
81 func (a *decimal) Assign(v uint64) {
109 func rightShift(a *decimal, k uint) {
232 func leftShift(a *decimal, k uint) {
278 func (a *decimal) Shift(k int) {
298 func shouldRoundUp(a *decimal, nd int) bool {
317 func (a *decimal) Round(nd int) {
329 func (a *decimal) RoundDown(nd int) {
338 func (a *decimal) RoundUp(nd int) {
362 func (a *decimal) RoundedInteger() uint64 {