Next: cpg-ref-SP_get_functor, Previous: cpg-ref-SP_get_dispatch, Up: cpg-bif [Contents][Index]
SP_get_float()#include <sicstus/sicstus.h>
int
SP_get_float(SP_term_ref term,
double *f);
Assigns to *f the float that corresponds
to a Prolog number.
If the term is an integer that does not fit in a double, then
the call will fail.
The SP_term_ref holding the value
The location to assign
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.