Skip to content

Commit

Permalink
sixtysecond commit
Browse files Browse the repository at this point in the history
  • Loading branch information
grizzlysmit committed May 6, 2021
1 parent 5ad4abb commit b9004ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ int main(int argc, char *argv[]){
using std::literals::string_literals::operator""s;
using namespace fmt::literals;
std::complex<double> z = 3.1415926536 + 2.71828182845i;
std::cout << fmt::format("z == {0:,0.10} == {0:@0.10}\n{1}z == {0:$@;0.10} {3}=={4} {0:,;0.10}{2}\nz == {0:*;0.10} == {0}"s, z,
std::cout << fmt::format("z == {0:,0.10} == {0:@0.10}\n{1}z {5}=={1} {0:$@;0.10} {3}=={4} {0:,;0.10}{2}\nz == {0:*;0.10} == {0}"s, z,
fg(fmt::color::green) | bg(fmt::color::red) | fmt::emphasis::bold, fmtextras::reset_colour(),
fg(fmt::color::blue) | bg(fmt::color::red) | fmt::emphasis::bold,
fg(fmt::color::yellow) | bg(fmt::color::red) | fmt::emphasis::bold) << std::endl;
fg(fmt::color::yellow) | bg(fmt::color::red) | fmt::emphasis::bold,
fg(fmt::color::blue) | bg(fmt::color::red) | fmt::emphasis::bold) << std::endl;
std::cout << fmt::format("z == {:@*0^{}.{}f}", z, 25, 20) << std::endl;
std::cout << fmt::format("z == {:@ >{}.{}f}", z, 25, 20) << std::endl;
Expand Down
5 changes: 3 additions & 2 deletions testcmplx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ int main(int argc, char *argv[]){
using std::literals::string_literals::operator""s;
using namespace fmt::literals;
std::complex<double> z = 3.1415926536 + 2.71828182845i;
std::cout << fmt::format("z == {0:,0.10} == {0:@0.10}\n{1}z == {0:$@;0.10} {3}=={4} {0:,;0.10}{2}\nz == {0:*;0.10} == {0}"s, z,
std::cout << fmt::format("z == {0:,0.10} == {0:@0.10}\n{1}z {5}=={1} {0:$@;0.10} {3}=={4} {0:,;0.10}{2}\nz == {0:*;0.10} == {0}"s, z,
fg(fmt::color::green) | bg(fmt::color::red) | fmt::emphasis::bold, fmtextras::reset_colour(),
fg(fmt::color::blue) | bg(fmt::color::red) | fmt::emphasis::bold,
fg(fmt::color::yellow) | bg(fmt::color::red) | fmt::emphasis::bold) << std::endl;
fg(fmt::color::yellow) | bg(fmt::color::red) | fmt::emphasis::bold,
fg(fmt::color::blue) | bg(fmt::color::red) | fmt::emphasis::bold) << std::endl;
std::cout << fmt::format("z == {:@*0^{}.{}f}", z, 25, 20) << std::endl;
std::cout << fmt::format("z == {:@ >{}.{}f}", z, 25, 20) << std::endl;

Expand Down

0 comments on commit b9004ab

Please sign in to comment.