How do I convert a String into a Currency

2
The webservice that I am using delivers financial data as type String. In my Entity model I use the corresponding data type Currency. How do I convert the String type to a Currency type ?
asked
1 answers
1

Use parseFloat($object/attribute) as stated here to convert the string to a float. After that you could fill your currency with the float.

answered