How to ShowMessage() with long double value?

Owad88's Avatar, Join Date: Jun 2011
Newbie Member
For example for int:
Code:
ShowMessage(IntToStr(value));
How to do it for long double?
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
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).