--------------------------------
void main() { import std.stdio, std.format; writeln( format("%,.1f", 84543432.951172) ); // 84,543,433.0 writeln( format("%,.0f", 84543432.951172) ); // 84543433 } ------------------------------
codephantom via Digitalmars-d-learn Sun, 29 Oct 2017 03:15:38 -0700
--------------------------------
void main() { import std.stdio, std.format; writeln( format("%,.1f", 84543432.951172) ); // 84,543,433.0 writeln( format("%,.0f", 84543432.951172) ); // 84543433 } ------------------------------