Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : String to number, serial port?

$
0
0
Thx!

I tried this one but I got an error. So I use float now, that nearly works. But Processing converts my string to 0.0 but is has to be a bigger number, at least bigger than 100. Do you know what the problem could be?



 if(doc != null) {
    // this is the command that selects the data from the result expression
    Element data = doc.select(path).first();
    waarde = data.text();
    println(waarde); //thats the string, it prints the right number.
    println(f); //thats the float f, it prints 0.0
 





Viewing all articles
Browse latest Browse all 1768

Trending Articles