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).