Published on March 21, 2017 by ProgrammingKnowledge
Want create site? Find Free WordPress Themes and plugins.

For more detailed Tutorial visit – goo.gl/ZrJh1a

bc, for basic calculator (often referred to as bench calculator), is “an arbitrary-precision calculator language” with syntax similar to the C programming language. bc is typically used as either a mathematical scripting language or as an interactive mathematical shell.

bc [ -hlwsqv ] [long-options] [ file … ]

bc is a language that supports arbitrary precision numbers with interactive execution of statements. There are some similarities in the syntax to the C programming language. A standard math library is available by command line option. If requested, the math library is defined before processing any files. bc starts by processing code from all the files listed on the command line in the order listed. After all files have been processed, bc reads from the standard input. All code is executed as it is read. (If a file contains a command to halt the processor, bc will never read from the standard input.)

Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply

2 Comments on "Shell Scripting Tutorial for Beginners 11 – Floating point math operations in bash | bc Command"

Notify of
avatar

malhar jajoo
Guest
malhar jajoo
1 month 23 days ago

although you have explained fine with examples , the problem most people have is understanding where to put a space when dealing with such commands.If you can highlight upon that , then it would be even more helpful

ProgrammingKnowledge
Guest
ProgrammingKnowledge
6 months 2 days ago

For more detailed Tutorial visit – goo.gl/ZrJh1a

wpDiscuz