sq_objtofloat

Squirrel 2.2

sq_objtofloat

SQFloat sq_objtofloat(HSQOBJECT * po);

return the float value of a raw object reference.

parameters:
HSQOBJECT * po

pointer to an object handler

remarks:

If the object is an integer will convert it to float. If the object is not a number will always return 0.