Re: how to calculate fractions with let?

From: Rouben Rostamian (rouben_at_pc18.math.umbc.edu)
Date: 03/21/05


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