Instale o comando BC Mac

brew install bc
Armandres