These are chat archives for fmtlib/fmt

17th
Jan 2018
Aaron Bishop
@Erroneous1
Jan 17 2018 20:37
If I want to truncate an argument so that it can't be more than X characters long, is there a syntax for that? Or is the only solution to truncate the input? IE I want something like fmt::format("{:0>2}", 123) to return 23 instead of 123 or fmt::format("{:0<2}",123) to return 12
Victor Zverovich
@vitaut
Jan 17 2018 22:34
@Erroneous1, no there is no syntax to truncate an argument. You'll have to truncate the input or write a custom formatter.
Aaron Bishop
@Erroneous1
Jan 17 2018 22:34
thanks