SetString sets d to s. Any non-standard NaN values are converted to a normal NaN. Any negative zero is converted to positive.
(s string)
| 1031 | // SetString sets d to s. Any non-standard NaN values are converted to a |
| 1032 | // normal NaN. Any negative zero is converted to positive. |
| 1033 | func (d *DDecimal) SetString(s string) error { |
| 1034 | return setDecimalString(s, &d.Decimal) |
| 1035 | } |
| 1036 | |
| 1037 | func setDecimalString(s string, d *apd.Decimal) error { |
| 1038 | // ExactCtx should be able to handle any decimal, but if there is any rounding |
no test coverage detected