Float64 returns the float64 representation of x. This conversion may lose data (see strconv.ParseFloat for caveats).
()
| 286 | // Float64 returns the float64 representation of x. This conversion may lose |
| 287 | // data (see strconv.ParseFloat for caveats). |
| 288 | func (d *Decimal) Float64() (float64, error) { |
| 289 | return strconv.ParseFloat(d.String(), 64) |
| 290 | } |
| 291 | |
| 292 | const ( |
| 293 | errExponentOutOfRangeStr = "exponent out of range" |