From: Brendan Doherty (bdoherty@itl.ca)
Date: Tue Apr 08 2003 - 12:13:27 EDT
Hi I keep on getting 0 ... seems like it does not like to divide ...
anyone know how to calculate a percent from to #'s
VALUEONE=20
VALUETWO=80
PERCENT=`expr $VALUEONE / $VALUETWO \* 100 `
echo $PERCENT
---- I receive 0 ,,, it should be .25.. 20/80 * 100 =0.25 ; seems like to 20/80 is returning 0. thanks -- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:28 EDT