ParseDDecimal parses and returns the *DDecimal Datum value represented by the provided string, or an error if parsing is unsuccessful.
(s string)
| 1023 | // ParseDDecimal parses and returns the *DDecimal Datum value represented by the |
| 1024 | // provided string, or an error if parsing is unsuccessful. |
| 1025 | func ParseDDecimal(s string) (*DDecimal, error) { |
| 1026 | dd := &DDecimal{} |
| 1027 | err := dd.SetString(s) |
| 1028 | return dd, err |
| 1029 | } |
| 1030 | |
| 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. |
no test coverage detected
searching dependent graphs…