How to convert a string to a double or decimal? In Exact Online (REST API) I try to calculate with a decimal value in a string field. e.g items.netprice + items.notes. The field items.notes contains the decimal value.
Tried using cast and convert in combination with float and decimal.
String to double or decimal
69 views Asked by H Jansen At
1
I would use a solution like:
The
casewithregexp_replaceensures that non-number are returned as null. You might want to change that to an error if deemed necessary.