1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

How to ShowMessage() with long double value?

Discussion in 'C' started by Owad88, Jun 16, 2011.

  1. Owad88

    Owad88 New Member

    For example for int:
    Code:
    ShowMessage(IntToStr(value));
    How to do it for long double?
     
  2. xpi0t0s

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

Share This Page