One way of forcing numeric context is to simply add nothing (say, if you have $num = "2.750000"):
$num += 0;
And, if you really need an integer, use int($num).
/J
In reply to Re: string to scalar?
by jplindstrom
in thread string to scalar?
by Fian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |