WSPutReal128 (C 函数)
int WSPutReal128(WSLINK link,mlextended_double d)
把扩展精度的浮点数 d 写入由 link 指定的 WSTP 连接.
范例
基本范例 (1)
#include "wstp.h"
/* put the expression Sqrt[2.70001] to a link */
void f(WSLINK lp)
{
if(! WSPutFunction(lp, "Sqrt", 1))
{ /* unable to put Sqrt[] to lp */ }
if(! WSPutReal128(lp, 2.70001))
{ /* unable to put 2.70001 to lp */ }
if(! WSEndPacket(lp))
{ /* unable to put the end-of-packet sequence to lp */ }
if(! WSFlush(lp))
{ /* unable to flush any output buffered in lp */ }
}