tofloat

lpmoo-1.2/doc/builtins/tofloat · 578 B

From the archive lpmoo-1.2.tar.gz

Download the archive   « Back to the archive contents

NAME
	tofloat - convert argument to a floating point constant

SYNOPSIS
	float tofloat(value)

DESCRIPTION
	The argument `value' is converted to a floating point constant
	(if possible), and the constant is returned.

	Numbers are converted into their floating point equivalents.

	Strings are scanned for a float value, and that value is
	returned. If the string does not appear to contain a floating
	point constant, 0.0 is returned.

	Objects and errors are converted to floats in a manner similar
	to tonum().

	Lists and tables generate an E_TYPE error.

SEE ALSO
	tonum

Site Stats

Snippets: 1791
Codebases: 571