In reply to Vaino:
The specification for the formatting string in SystemVerilog is very basic, but there are backward compatibility issues that prevent extending it to match the C++ formatting capabilities directly. The only way to access the exact formatting capabilities of C++ is to import the routines through the DPI.