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
Arun Persad
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.