Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
robert_gansel
Contributor III
Contributor III

string into number (LOAD)

Hi,

I am currently searching for a simple way to convert a string into a number.

E.g.: I have the string "€ 5000". As it is not possible to calculate with this I would like to just load the number out of this string and save it as a num value.

Is there any simple solution for this?

Thanks in advance,

Robert

7 Replies
Anil_Babu_Samineni

Yes, You must use like below from your environment

SET MoneyFormat='#,##0.00;(#,##0.00)';

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sasiparupudi1
Master III
Master III

May be try

KeepChar(YourField,'0123456790') as NewField

sunny_talwar

You can also try this

Money#('€ 5000', '€ ###0')

or this for your field

Money#(FieldName, '€ ###0') as FieldName

divya_shinde
Partner - Contributor II
Partner - Contributor II

Try this

num(keepchar('€ 5000',0123456789))

robert_gansel
Contributor III
Contributor III
Author

That's exactly what I was searching for.

Many thanks!

sunny_talwar

Great

sasiparupudi1
Master III
Master III

Hi Robert

Please close this thread by marking a correct answer and any helpful answers

Sasi