My programing World
A collection of programs and interview questions
Monday, March 2, 2015
Arithmetic expression in unix
read n
num=`echo "scale = 4;$n" | bc -l`
printf "%.3f" $num
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment