(C++) std::fixed
February 24, 2017 · View on GitHub
(C++) std::fixed
std::fixed is a stream manipulator to set the number of digits after the comma to a fixed number.
#include <iostream> int main() { std::cout << (1.0) << '\n' << std::fixed << (1.0) << '\n'; }
Examples