answersLogoWhite

0

use $((2#<decimal value>)) eg. $((2#101001)) will return 41

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Whynot you use any onther programming except shell programming?

Shell programming can get you only so far; after that you need to use another programming language (possibly even another scripting language) to get the job done. Shell programming is designed to work with the system interface and to help automate tasks; it isn't good for everything.


What is the difference between the Linux shell and C?

C is a programming language. A shell is an interface.


What are the types of shells in shell programming?

The Bourne shell (sh) ,The C shell (csh) ,The Korn shell (ksh) ,The Z-Shell (zsh) ,The POSIX shell,The Bourne Again SHell (Bash)null


When float exist?

Floats exist in programming languages to represent decimal numbers. They are used to store values with decimal points and are typically defined as floating-point numbers. Floats are useful for calculations that require high precision and accuracy in handling fractional numbers.


What tools can represent decimal values?

Some common tools used to represent decimal values include: Decimal notation: This is the most common and widely used way to represent decimal values, using a decimal point followed by digits from 0-9. Fraction notation: Decimal values can also be represented as fractions, where the numerator is the decimal value and the denominator is a power of 10. Scientific notation: Decimal values can be represented in scientific notation, where a number between 1 and 10 is multiplied by a power of 10. This is particularly useful for very large or very small decimal values.


What is the importance of Linux shell?

Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.


Sum of n numbers in shell programming?

2 4 6


What are the values of the decimal places?

Tenths


Distinguish between integer programming problem and linear programming problem?

Integer programming is a subset of linear programming where the feasible region is reduced to only the integer values that lie within it.


Difference between c and shell programming execution?

Can you please explain your question?


What is the difference between a shell and a subshell in the context of computer programming?

In computer programming, a shell is a program that provides a user interface for accessing the operating system's services. A subshell is a separate instance of the shell program that can run within the main shell. Subshells allow for the execution of multiple commands simultaneously and can be used to manage complex tasks efficiently.


Convert the following decimal values to binary values 118?

0111 0110