How to ShowMessage() with long double value?

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

  1. Owad88

    Owad88 New Member

    Joined:
    Jun 16, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    For example for int:
    Code:
    ShowMessage(IntToStr(value));
    How to do it for long double?
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice