about number convertion lazarus / 13-General ---------------------------------------------------------------------- mg1821 · 2006-03-24 00:35 Hello in delphi i used i.e. roundto(12.345,-2) and i received 12.35 (in memo or captions). but in lazarus i can not use it. :roll: ---------------------------------------------------------------------- Bart · 2006-03-24 10:52 Could you use Format() instead? Bart ---------------------------------------------------------------------- Anonymous · 2006-03-24 16:08 format is for c or c++..... i  guess :roll: i use math and sysutils in uses list but nothing happens. ---------------------------------------------------------------------- Anonymous · 2006-03-24 16:33 well.... for those who knows a few of fpc (me) can find the solution in www.freepascal.org in the rtl documentation. i.e. the solution for this topic is the formatfloat function in the sysutils that give a string...   :twisted: ---------------------------------------------------------------------- Bart · 2006-03-24 18:39 Format is not only for C++, Delphi has it too, and so does Lazarus! Format ('%4.2f',[12.34567]) is going to give you 12.35 as a string ... (Tested (compiled and run)  on Suse Linux / Lazarus 0.9.13 beta) Bart