This article directory:1.6.1 Basic Integer Arithmetic1.6.2 BC Command Advanced arithmetic operationsuse Let, $ (()), or $[] for basic integer operations, using BC for advanced operations, including decimal operations. Where the expr command can also
Abstract:
1) The Linux shell uses let, [], (()) Three operators to manipulate shell variables for simple basic operations;
2) The Linux shell uses expr and BC two programs to achieve advanced operations;
1, basic operation of Linux
BC is an advanced tool for mathematical operations and contains a number of options for performing floating-point arithmetic and applying some advanced functions:[Email protected] ~]# echo 3*2.12 | Bc6.36[[email protected] ~]# n=54[[email protected]
If you need a calculator in a graphical desktop environment, you may only need to click on it all the way to find a calculator. For example, a tool named is already included in the Fedora workstation Calculator . It has several different modes of
Share a command-line calculator - BCIf you need a calculator in a graphical desktop environment, you may only need to click on it all the way to find a calculator. For example, a tool called Calculator is already included in theFedora workstation .
If you need a calculator in a graphical desktop environment, you may only need to click on it all the way to find a calculator. For example, a tool called Calculator is already included in theFedora workstation . It has several different modes of
GTW likes Mathaccepts:472submissions:2140Time limit:2000/1000 MS (java/others)Memory limit:131072/131072 K (java/others)Problem descriptionOne day, GTW listened to the maths teacher The Golden Dragon Fish class, began to do mathematics "from the
Yesterday in science on the internet to learn such a news, "Vietnamese primary math puzzles Dr", is known to be the title from the Vietnamese Paul Elementary school three years, but reported that the problem baffled the doctor down to the parents,
Nanoape Loves Sequenceⅱaccepts:374submissions:946Time limit:4000/2000 MS (java/others)Memory limit:262144/131072 K (java/others)Problem descriptionRetired dog Nanoape go back to learn culture Class! In math class, Nanoape heart itch and play a
Code reference from:xyz111Test instructions: As we all know, Meng Meng's six flowers are not good at maths, so Yong too gave her some math problems to do exercises, one of which is this:Yong too have a stick of length n, this stick is composed of n 1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.