talha999
05-09-2004, 06:40 PM
here is simple script which is take input and divide value by 10
but the problem it is not showing answer in decimals
like i put 55 it shows 5 which should be 5.5
Regards
#!/bin/bash
echo -n "Enter the value of a:"
read a
b=$[$a / 10]
echo $b
but the problem it is not showing answer in decimals
like i put 55 it shows 5 which should be 5.5
Regards
#!/bin/bash
echo -n "Enter the value of a:"
read a
b=$[$a / 10]
echo $b