ParseDDecimal parses and returns the *DDecimal Datum value represented by the provided string, or an error if parsing is unsuccessful.
(s string)
| 910 | // ParseDDecimal parses and returns the *DDecimal Datum value represented by the |
| 911 | // provided string, or an error if parsing is unsuccessful. |
| 912 | func ParseDDecimal(s string) (*DDecimal, error) { |
| 913 | dd := &DDecimal{} |
| 914 | err := dd.SetString(s) |
| 915 | return dd, err |
| 916 | } |
| 917 | |
| 918 | // SetString sets d to s. Any non-standard NaN values are converted to a |
| 919 | // normal NaN. Any negative zero is converted to positive. |
no test coverage detected
searching dependent graphs…