K3 Documents

Trim a Field

Updated on

Copy and Paste the following formula using your data where necessary.

{({StrCollateral}.contains("(")?-1:1) 
* Double.parseDouble({StrCollateral}.trim().replaceAll(" ", "").replaceAll("[^0-9\\.\\-\\+]",""))
Click to copy
Previous Article Convert Currency Symbols to Strings
Next Article Absolute Value