Do math in the Linux shell with GNU bc

Posted by bob on Aug 4, 2020 9:47 AM EDT
Opensource.com
Mail this story
Print this story

Most POSIX systems come with GNU bc, an arbitrary precision numeric processing language. Its syntax is similar to C, but it also supports interactive execution of statements and processing data from standard in (stdin). For that reason, it's often the answer to the question, "How do I do math in the Linux shell?" This style of response is common online: read more

Full Story

  Nav
» Read more about: Groups: GNU, Linux; Story Type: News Story

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.