I thought this was simple, but I've not yet been able to figure out what
is wrong.
#!/bin/sh
PERMINUTE=$((28.95/432000))
echo "$PERMINUTE"
What I'm looking for is $PERMINUTE to be the value of 28.95/43200.
I thought I had the syntax correct, but when I execute it I get:
./calc2.sh: line 3: 28.95/432000: syntax error in expression (error
token is ".95/432000")
Any ideas?
Thanks,
Mike
--
Make input easy to proofread.
02:00:01 up 2:43, 1 user, load average: 0.03, 0.16, 0.53
Linux Registered User #241685 http://counter.li.org