Skip to main content

Timeline for Can I do basic maths in Bash?

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Oct 29, 2019 at 23:21 comment added CpILL you might also need to add scale to get floating point precision working i.e. echo "scale=2;557/3672" | bc
S Sep 4, 2018 at 8:19 history suggested Mr.Web CC BY-SA 4.0
more details on what bc stands for and how to quit
Sep 4, 2018 at 7:48 review Suggested edits
S Sep 4, 2018 at 8:19
Jan 26, 2017 at 17:09 comment added Goose For some math problems, you may need to wrap it in quotes, such as echo '0.6 * 12' | bc
May 13, 2016 at 9:17 comment added Medhat Helmy Just for clarity it would be like that : echo 25-5 | bc
Mar 11, 2011 at 0:57 vote accept Kurru
Mar 11, 2011 at 0:29 vote accept Kurru
Mar 11, 2011 at 0:57
Mar 11, 2011 at 0:14 history answered TestinginProd CC BY-SA 2.5