MLPutRealNumberAsString (C 函数)
MLPutRealNumberAsString 已经被 WSPutRealNumberAsString 所取代.
int MLPutRealNumberAsString(MLINK l, const char *s )
sends a floating-point number encoded as ASCII string s to the MathLink connection specified by l.
更多信息

- Send the number s in the form "3.14159".
- MLPutRealNumberAsString() returns 0 on error, and a nonzero value if the function succeeds.
- MLPutRealNumberAsString() is declared in the MathLink header file mathlink.h
范例
基本范例 (1)
#include "mathlink.h"
/* A function to put the expression Sqrt[2.75] to a link */
void f(MLINK l)
{
if(! MLPutFunction(l, "Sqrt", 1))
{ /* Unable to put Sqrt[] to the link */ }
if(! MLPutRealNumberAsString(l, "2.75"))
{ /* Unable to put the number to the link */}
if(! MLEndPacket(l))
{ /* Unable to put the end-of-packet sequence to l */ }
if(! MLFlush(l))
{ /* Unable to flush any output buffered in l */ }
}