How to ShowMessage() with long double value?

Newbie Member
16Jun2011,20:02   #1
Owad88's Avatar
For example for int:
Code:
ShowMessage(IntToStr(value));
How to do it for long double?
Mentor
17Jun2011,13:53   #2
xpi0t0s's Avatar
Find the family of functions that includes IntToStr() and see if there is a LongDoubleToStr(). Alternatively use sprintf %ld to "print" the long double to a char array X then just ShowMessage(X).