New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Why we want to use float 4,2f in average
2 Answers
+ 2
Please specify your question.
4.2f is just a format specifier, which prints a float value with 2 decimal places and 4 spaces (including the dot) in total.
E.g. 7.52
+ 1
Answer want