Try this (change 600 to 600.0):

$nwheight = 600.0 * $verh