$var = 10.50;
.
$var = 10.50; list($a, $b) = explode('.', $var); echo $b;
$var = 10.50; $var -= (int) $var;