RhinoApp().Print C++

Hi,

This is very minor question, but how does the formatting of strings works in Rhino C++?

When I write this:

    int counter = 10;
    RhinoApp().Print (L"counter = %g", counter);

Rhino prints this:
counter = 4.94066e-323

It works like printf formatting. An integer is formatted with %d

Thank you, worked.