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.
Tools considered:
bc
: Does not support commaspython
: Does support thousand separators, but they have to be1_234_567
instead of1,234,567
.- Google: supports commas! But I'd prefer a command line tool to a search engine.
I'm on macOS.