Search Results

Search: Posts Made By: alby
1,955
Posted By alby
help with fractions
:D
please can anyone help me with the thread below. I keep getting parse errors, illegal character M G R.this is a portion of the script:
ckk=.20
Ded=.10
basic_sal=90000
Allowances=echo "$chk" *...
Forum: Linux 07-07-2008
10,086
Posted By alby
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...
22,263
Posted By alby
how do i get a result in fraction in shell...
how do i get a result in fraction in shell script.

I am using expr for division of two numbers but it is giving Quotient.

I need it in full fraction value.
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy