0
Program for Number to string conversion in java
ex: 121 it has to print one hundred and twenty one
4 Réponses
+ 13
Look at the code playground, there are some examples for this.
+ 2
Use String.format() function
Example
float number = 95.564f;
System.out.println(String.format ("%.1f", number));
System.out.println(String.format ("%.2f", number));
System.out.println(String.format ("%.4f", number));
Output
95.6
95.56
95.5640
+ 2
Sorry my fault, haven't seen the description.
+ 1
thanks for your advice guys..