Forums > Java

Convert symbols to floats

January 22, 2013 | 3:08 pm

I am receiving my data as symbols and then I convert them to floats using maxobjects. However, I woud like to do this conversion already in the mxj object itself. How should I do that?
Thank you!



January 22, 2013 | 4:27 pm

When writing this in my public class I get errors. The compiler wants to see an identifier after the parentheses
< static final float parseFloat(LAST_TRADE) = 52; >


January 23, 2013 | 5:42 pm

No, you call it, not declare it:

float foo = Float.parseFloat("12346.789");


Viewing 4 posts - 1 through 4 (of 4 total)