From Real into String Variable Conversation

Tony picture Tony · Feb 7, 2012 · Viewed 21.5k times · Source

Please help, how can i convert a real declared variable into a string one. Is there any function like IntToStr() ? RealToStr() function won't work.

Answer

ain picture ain · Feb 7, 2012

There is a bunch of conversion routines in SysUtils unit, ie FloatToStr and other FloatTo* functions. Also see the Format function.