Re: how to calculate fractions with let?
From: Rouben Rostamian (rouben_at_pc18.math.umbc.edu)
Date: 03/21/05
- Next message: zippy747: "access nth argument list in a file"
- Previous message: samuels_at_red.seas.upenn.edu: "Re: how to calculate fractions with let?"
- In reply to: samuels_at_red.seas.upenn.edu: "how to calculate fractions with let?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 21 Mar 2005 18:15:51 +0000 (UTC)
In article <d1n0oq$ecsj$1@netnews.upenn.edu>,
<samuels@red.seas.upenn.edu> wrote:
>
>for the arithmetic expression 7/3, what unix function/command will
>show me the correct value of 2.33 and not just 2 like let?
echo "scale=6; 7/3" | bc
2.333333
echo "scale=30; 20/7" | bc
2.857142857142857142857142857142
-- Rouben Rostamian
- Next message: zippy747: "access nth argument list in a file"
- Previous message: samuels_at_red.seas.upenn.edu: "Re: how to calculate fractions with let?"
- In reply to: samuels_at_red.seas.upenn.edu: "how to calculate fractions with let?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]