variable width format specifiers

Carlos Santander csantander619 at gmail.com
Tue May 23 19:46:23 PDT 2006


(I hope I got the subject right)

How is this C code translated to D using Phobos?

         int l = 8, d = 4;
         double v = 34.289;

         sprintf (buf, "%*.*g", l, d, v);

-- 
Carlos Santander Bernal



More information about the Digitalmars-d-learn mailing list