Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 46 and Version 47 of ChapterConversions

Show
Ignore:
Author:
Abscissa (IP: 76.189.240.11)
Timestamp:
08/24/09 20:24:42 (15 years ago)
Comment:

Added example for decimal format code with minimum width (to better contrast with floating point's minimum width)

Legend:

Unmodified
Added
Removed
Modified
  • ChapterConversions

    v46 v47  
    232232Layouter ("{}", 123 );        // "123"       default decimal 
    233233Layouter ("{:d}", 123 );      // "123"       decimal 
     234Layouter ("{:d4}", 123 );     // "0123"      decimal width 4 
    234235Layouter ("{:f}", 123.456 );  // "123.46"    floating point 
    235236Layouter ("{:f4}", 123.456 ); // "123.4560"  floating point width 4