+ 1

Why we want to use float 4,2f in average

28th Nov 2018, 5:35 AM
Harsha Vardhan
Harsha Vardhan - avatar
2 odpowiedzi
+ 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
28th Nov 2018, 8:02 AM
Matthias
Matthias - avatar
+ 1
Answer want
28th Nov 2018, 5:35 AM
Harsha Vardhan
Harsha Vardhan - avatar