C printf in Delphi?

Posted by kroimon on Stack Overflow See other posts from Stack Overflow or by kroimon
Published on 2010-03-18T17:19:08Z Indexed on 2010/03/18 17:21 UTC
Read the original article Hit count: 342

Filed under:
|
|
|
|

Hi there!

Does anyone know a 100% clone of the C/C++ printf for Delphi? Yes, I know the System.Format function, but it handles things a little different.

For example if you want to format 3.14 to "003" you need "%03d" in C, but "%.3d" in Delphi.

I have an application written in Delphi which has to be able to format numbers using C format strings, so do you know a snippet/library for that?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about delphi

Related posts about c