MLPutReal32 (C 函数)
MLPutReal32 已经被 WSPutReal32 所取代.
int MLPutReal32(MLINK link,double x)
把一单精度浮点数 x 写入由 link 指定的 MathLink 连接,其精度对应于 C 类型 float.
更多信息

- 自变量 x 在外部程序中一般被声明为 float,但是在 MLPutReal32() 中必须声明为 double,以便于在没有 C 原型的情况下也可以用.
- MLPutReal32() 在错误事件中返回0,如果函数成功则返回非零值.
- 如果 MLPutReal32() 失败,则使用 MLError() 检索错误代码.
- MLPutReal32() 在 MathLink 标头文件 mathlink.h 中被声明.
范例
基本范例 (1)
#include "mathlink.h"
/* send the number 3.4 to a link */
void f(MLINK lp)
{
float numb = 3.4;
if(! MLPutReal32(lp, numb))
{ /* unable to send 3.4 to lp */ }
}