Next: , Previous: , Up: cpg-bif   [Contents][Index]


12.3.72 SP_put_float()

Synopsis

#include <sicstus/sicstus.h>

int
SP_put_float(SP_term_ref term,
             double f);

Assigns to term a reference to a float.

Arguments

term

The SP_term_ref to be assigned

f

The float (must be finite)

Return Value

Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.

See Also

Creating Prolog Terms.


Send feedback on this subject.