Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

String to Double

Hello, 

I have some input data in XLS which contains values for example (1176,77)

i want to transform this data in Double or Float to be used some Mathematic Calculations in theses values

 

I tryied Double.ParseDouble, but i got error

Exception in component tMap_1 (Study)
java.lang.NumberFormatException: For input string: "1176,77"

at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at sun.misc.FloatingDecimal.parseDouble(Unknown Source)

Labels (3)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Replace comma by point before to cast from string to double

View solution in original post

2 Replies
TRF
Champion II
Champion II

Replace comma by point before to cast from string to double
Anonymous
Not applicable
Author

Pefect, i didnt notice this stuff

Thanks