Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or pipe everything to bc -l, then print the result with /usr/bin/printf


TIL: bc has a (poorly labeled) -l flag which also sets the scale to 20 for you.




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

Search: