Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // function to format number of decimal places
- void setDecimalPlaces()
- {
- cout.setf(ios::fixed);
- cout.setf(ios::showpoint);
- cout.precision(8); // set number of decimal places in bracket
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement