Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

TElTreeInplaceFloatSpinEdit: 2 d.p. specified, but displays 5.00 as 5

I have tried in AfterOperation as well to format the number:

      with ItemTree.ItemFocused do
      begin
        Cells[INDEX_EstimatedTotalHours].Text := FormatFloat('0.00', InplaceFloatSpin.Editor.Value);
      end;

but the zeros after the decimal place are not displayed, the whole number part is displayed.

How can I ensure the 2 decimals are displayed when zero?

Thank you.
Raymond

Comments

Sign In or Register to comment.