I have the following problem: I have big values stored in the String, and I can only display number that is 7 digit long. Here are the examples after converting from string to float - I have String 300 which should be 300, but it is 300.0 Everything that's bigger than 7 digits should be written in scientific notation (700000000 should be 7E+8) It also could be 7.0E8, but I prefer 7E+8.
I have tried formatting the string but when I wasn't able to get rid of .0 without getting rid of scientific notation. Is this even possible ?