#strFraction will keep printing "1" instead of "0.5" even though i've tried to cheat perl into thinking it's a mathematical variable.my $strFraction = "1/2" + 0; print "strFraction is actually $strFraction <br>";
In reply to how to convert fractional string to decimal numbers ? by adrive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |