in reply to Re^2: Coping with decimalsin thread Coping with decimals
Did you try it?
$ perl -e'my ($X,$Y,$Z)=(1,7,5);my $c=($X-$Y)/$Z;print $c-int$c, $/' -0.2 $ [download]
After Compline,Zaxo