I often want to copy/paste some numbers from a website into a calculator to do some quick arithmetic. These numbers are typically formatted for display, so they include commas as thousands separators (1,234,567 instead of 1234567).
I'd like a command line calculator that lets me do basic arithmetic and ignores the commas.
bc: Does not support commas
python: Does support thousand separators, but they have to be
- Google: supports commas! But I'd prefer a command line tool to a search engine.
I'm on macOS.