1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,012
    Likes Received:
    203
    Trophy Points:
    0
    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