aryan015 Posted on Jul 27, 2024 🧡how to set precision in cpp for floating or double datatype 💪 #cpp #c #javascript #python // a powerfull manipulative library for customized input/output #include <iomanip> //input/output manipulatioin float float_point = 2.000000; cout<<fixed<<setprecision(2)<<float_point; //2.00 Enter fullscreen mode Exit fullscreen mode Top comments (2) Subscribe Submit Preview Dismiss Collapse Expand Paul J. Lucas Paul J. Lucas Paul J. Lucas Follow Retired Principal Software Engineer, Instructor, Author — most recently of the book Why Learn C. Email paul@lucasmail.org Location San Francisco Bay Area Education University of Illinois at Urbana-Champaign Work Retired Principal Software Engineer Joined Jan 21, 2017 • Jul 28 '24 Dropdown menu Copy link Hide This shouldn't be tagged with #c, #javascript, or #python. Collapse Expand aryan015 aryan015 aryan015 Follow LinkedIn - https://www.linkedin.com/in/aryan-khandelwal-779b5723a/ Hackerrank - https://www.hackerrank.com/profile/aryan015 codechef - https://www.codechef.com/users/aryank_15 ❤ Email aryankhandelwal15@gmail.com Location jodhpur Education JODHPUR INSTITUTE OF ENGINEERING AND TECHNOLOGY Pronouns he Work self|freelancer Joined Jul 18, 2021 • Jul 28 '24 Dropdown menu Copy link Hide ok Code of Conduct • Report abuse
Top comments (2)
This shouldn't be tagged with
#c,#javascript, or#python.ok