• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

avoid scientific notation

byenary

Lurker
Hi there,

Very new to android and java..
Making simple conversion app, the issue is I end up with scientific notation for bigger numbers, > 10 million I get scientific notation as a result, while a double should handle bigger numbers I tought...

Relevant code :

float inputValue = Float.parseFloat(text.getText().toString());
text.setText(String.valueOf(convertEuroToFrank(inputValue)));


private double convertEuroToFrank(double euros) {
return (euros*40);
}
 
Back
Top Bottom