Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3046

Format problem?

$
0
0
Code:

int main() {
        std::cout <<  std::format("{:< 8f}", .111111);
}

displays 0.111111 but I need .111111 (no initial 0).
Is this possible just using format or do I need to manipulate the produced string?

Viewing all articles
Browse latest Browse all 3046

Trending Articles