Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
paxcoder
· 9y ago · 0 comments
Does anyone know why the default scale is 0 (meaning division rounds down by default)?
Comments
[–]
rsync
9y ago
No idea but initial system setup on every system I touch is to alias bc to 'bc -l'.
I use bc tens of times per day ...
[–]
xorcist
9y ago
I use bc all the time, yet I still managed to miss that option. Thanks!
[–]
bandrami
9y ago
Historical compatibility. Back in the day you couldn't always guarantee you even had a coprocessor, so scale > 0 could get arbitrarily expensive.