WSPutFloat()

int WSPutFloat(WSLINK link,double x)

puts the floating-point number x to the WSTP connection specified by link with a precision corresponding to the C type float.

Details

  • The argument x is typically declared as float in external programs, but must be declared as double in WSPutFloat() itself in order to work even in the absence of C prototypes.
  • WSPutFloat() is equivalent to WSPutReal32().

Tutorials