The UNIX and Linux Forums
>
Operating Systems
>
Linux
Multiplication with Fractions
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Multiplication with Fractions
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
07-07-2008
alby
Registered User
Join Date: Jun 2008
Posts: 3
Multiplication with Fractions
Hello there,
how do i multiply a fraction and a whole number? Example 20% of 50,000.
I had gotten 0.2 using the following:
chk=echo 20 100 | awk `{print $1/$2}`
echo $chk
$chk \* 50000 displays the error: non-numeric expression.
alby
View Public Profile
Find all posts by alby
Find alby's past nominations received
Find alby's present nominations given