Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to ShowMessage() with long double value? (http://www.go4expert.com/forums/showmessage-long-double-value-t26077/)

Owad88 16Jun2011 20:02

How to ShowMessage() with long double value?
 
For example for int:
Code:

ShowMessage(IntToStr(value));
How to do it for long double?

xpi0t0s 17Jun2011 13:53

Re: How to ShowMessage() with long double value?
 
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).


All times are GMT +5.5. The time now is 07:31.