1 (edited by v_pozidis 2019-02-12 17:51:54)

Topic: Format function

Hi I like to have only 2 digits after the comma (,). Example the number 2,36578 should be 2.36 . I use the round founction but I don't get the result I want .  How can I use the format function or any other function ?

Re: Format function

Hello.

var
   Number: double;
begin
   Number := 2,36578;
   ShowMessage( FormatFloat('#,#0', Number) );
Dmitry.

Re: Format function

Thank you