Re: [Lazarus] Real number display

2014-12-09 Thread Larry Dalton
Works great! Thanks! Sent from my iPhone > On Dec 9, 2014, at 22:23, Chris Kelling wrote: > > RealNumber := 1.5; > FloatToStr(RealNumber:2,RealStr); > DbeditBox.text := RealStr > > The ":2" specifies the number of decimal. If you were using WRITE to output > to the console, it would look like

Re: [Lazarus] Real number display

2014-12-09 Thread Chris Kelling
RealNumber := 1.5; FloatToStr(RealNumber:2,RealStr); DbeditBox.text := RealStr The ":2" specifies the number of decimal. If you were using WRITE to output to the console, it would look like: RealNumber := 13.3456; writeln('Number = ',RealNumber:3:2); Which would output Number = 13.34 The firs

[Lazarus] Real number display

2014-12-09 Thread Larry Dalton
How do I get a real number to display as a decimal in a dbedit instead of an exponential number? Sent from my iPhone -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus