WSPutReal128 (C Function)
int WSPutReal128(WSLINK link,wstpextended_double d)
puts the extend-precision floating-point number d to the WS connection specified by link.
Examples
Basic Examples (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 */ }
}