Question : float pattern

How would I format a float number into a string with no decimal zero? For instance, convert myNumber = 123.0 to myString = "123".

Answer : float pattern

You'd have to test first:
1:
2:
3:
4:
int i = (int)d;
if(d == i) {
    // Use the code i gave you
}
Random Solutions  
 
programming4us programming4us