()
| 34 | } |
| 35 | |
| 36 | func init() { |
| 37 | curVal := NewBigInt(1) |
| 38 | curExp := new(BigInt) |
| 39 | for i := 1; i <= digitsTableSize; i++ { |
| 40 | if i > 1 { |
| 41 | curVal.Lsh(curVal, 1) |
| 42 | } |
| 43 | |
| 44 | elem := &digitsLookupTable[i] |
| 45 | elem.digits = int64(len(curVal.String())) |
| 46 | |
| 47 | elem.border.SetInt64(10) |
| 48 | curExp.SetInt64(elem.digits) |
| 49 | elem.border.Exp(&elem.border, curExp, nil) |
| 50 | elem.nborder.Neg(&elem.border) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | // NumDigits returns the number of decimal digits of d.Coeff. |
| 55 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…