floating point formatting

lucluc
edited 1:29PM in FastReport 4.0
Hello,

i have a question regarding floating point formatting.
I have no problems with formatting the folling floating point:

1234.123456 using %4.4f -> i get 1234,1345 (decimal separator=',')

I want to get rid of the following:

1234 -> i get 1234,0000

How can i display 1234 instead of 1234,000 ?

This is not a problem but it looks better....

Comments

  • Anu de DeusAnu de Deus Hampshire, UK
    edited 1:29PM
    Select the memoview object, find the DisplayFormat property, click on it to open the editor, select Number, and put MANUALLY in the Format String you want, or use one of the defaults.
    My favorite is 0.## for most of the cases
  • lucluc
    edited 1:29PM
    Thanks Anu...this works great....

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.