The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
decimal output "bc not working"
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
decimal output "bc not working"
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
11-18-2008
danmero
丹
Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,440
man bc
Quote:
...
scale
defines how some operations use digits after the decimal point. The default value of scale is 0.
Code:
echo 'scale=2; 1 / 5' | bc
danmero
View Public Profile
Find all posts by danmero
Find danmero's past nominations received
Find danmero's present nominations given