HI all I am trying to write a simple script that calculates 24.5% of an input value I wrote the following which uses bc
echo Enter a value read number answer=(echo 0.245 \* $number)|bc echo $answer but answer remains a null variable always How do I carry out calculations using non integer values then ? For integer values I could have used expr ............................. _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list
