This feature is not supported on the Wolfram Cloud.

int WSPutReal128(WSLINK link,wstpextended_double d)
puts the extend-precision floating-point number d to the WS connection specified by link.


  • WSPutReal128() returns 0 in the event of an error, and a nonzero value otherwise.
  • Use WSError() to retrieve the error code if WSPutReal128() fails.
  • WSPutReal128() is declared in the WS header file wstp.h.

ExamplesExamplesopen allclose all

Basic Examples  (1)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 */ }