NewFromInt converts an int64 to Decimal. Example: NewFromInt(123).String() // output: "123" NewFromInt(-10).String() // output: "-10"
(value int64)
| 111 | // NewFromInt(123).String() // output: "123" |
| 112 | // NewFromInt(-10).String() // output: "-10" |
| 113 | func NewFromInt(value int64) Decimal { |
| 114 | return Decimal{ |
| 115 | value: big.NewInt(value), |
| 116 | exp: 0, |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | // NewFromInt32 converts an int32 to Decimal. |
| 121 | // |
no outgoing calls
searching dependent graphs…