How to do floating point arithmetic with bc

Sometimes you may want to do some floating point arithmetic in your terminal and discover that running Basic Calculator (bc) only performs integer math. Here’s the command you need to make it work

bc -l

Now you can enjoy floating goodness!

Leave a Reply

Your email address will not be published. Required fields are marked *