Hacker News new | past | comments | ask | show | jobs | submit login

Does anyone know why the default scale is 0 (meaning division rounds down by default)?



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 ...


I use bc all the time, yet I still managed to miss that option. Thanks!


Historical compatibility. Back in the day you couldn't always guarantee you even had a coprocessor, so scale > 0 could get arbitrarily expensive.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: