Custom Format string for numbers

Hello,


I don't know whichc formatstring to use to convert the format of a number from

12345678,50

to

12.345.678

If I use %d i get 12345678 but i need 12.345.678


Thanks
Philipp

Comments

  • edited April 2010
    I have the same problem, but in my case, I need to set a number of decimals.. like:

    1,1
    1,12
    1,123
    1,1234

    I try:
    %2.1f
    %2.2f
    %3.3f
    and nothing ..

    Ps.: I try to modify in run time, like:

    memPrecoUnit := TfrxMemoView(Sender);
    memPrecoUnit.DisplayFormat.FormatStr := '%1.1f';

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.