in reply to string to scalar?

As many have already commented, it's all about context.

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