0

HI guys,

I have file with 6 values in:

```
1060276
2211546
7544.941158316
1060276
2211606
7545.960677177
```

I put those numbers into variables:

```
obyte1=`cat $TMP | sed -n 1p`
rbyte1=`cat $TMP | sed -n 2p`
snapt1=`cat $TMP | sed -n 3p`
obyte2=`cat $TMP | sed -n 4p`
rbyte2=`cat $TMP | sed -n 5p`
snapt2=`cat $TMP | sed -n 6p`
```

I know need to perform the following calculation:

`read=((obyte2 - obyte1) / (snapt2 - snapt1)) * 1000000`

The question is how do i do this im scripting using ksh (cant be changed) but need the answer to be accurate to multiple decimal places and also do subtraction with numbers to multiple decimal places. Can anyone help??