How to precise an output of float type in python. Like the question if it is useful | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to precise an output of float type in python. Like the question if it is useful

Precision of a float

15th Oct 2019, 5:59 PM
D Dheeraj
D Dheeraj - avatar
4 Answers
+ 2
Whta programming language you are talking about?
15th Oct 2019, 7:47 PM
Lothar
Lothar - avatar
+ 2
Here some samples to output a float with f- string (Literal String Interpolation PEP498) format specifier: https://code.sololearn.com/c8HPoELw0FHc/?ref=app
16th Oct 2019, 3:32 PM
Lothar
Lothar - avatar
+ 1
Lothar thank you so much
18th Oct 2019, 10:05 AM
D Dheeraj
D Dheeraj - avatar
16th Oct 2019, 11:32 AM
D Dheeraj
D Dheeraj - avatar