Thursday, February 4, 2010

FastFormat 0.5.1 (alpha 1) released

The latest version of FastFormat, 0.5.1 (alpha 1), is released. Along with a bunch of minor changes, the main addition is the support for hex integer conversion, via to_x()/to_X(), as in:

    ff::fmtln(stm, "i={0}", ff::to_x(123456)); // i=1e240
    ff::fmtln(stm, "i={0}", ff::to_x(123456, 0, 10)); // i=000001e240


and, if you want it uppercase:


    ff::fmtln(stm, "i={0}", ff::to_X(123456)); // i=1E240
    ff::fmtln(stm, "i={0}", ff::to_X(123456, 0, 10)); // i=000001E240

1 comment:

  1. Thanks for sharing, nice post! Post really provice useful information!

    Hương Lâm chuyên cung cấp bán máy photocopy và dịch vụ cho thuê máy photocopy giá rẻ, uy tín TP.HCM với dòng máy photocopy toshiba và dòng máy photocopy ricoh uy tín, giá rẻ.

    ReplyDelete