I've not used 4.10, but don't you need to force the variable type otherwise you'll default to integer.

Try assignining the values as:
code:
$v=25.0
$i=2.0