Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
decimal binary
Name: DamMin Date: March 30, 2005 at 21:04:20 Pacific OS: unix CPU/Ram: p133 64
Comment:
is there any command to change decimal numbers into binary numbers if soo can you please tell me what command to use
Name: nails Date: March 30, 2005 at 23:05:43 Pacific
Reply:
If you are using the korn shell, the internal typeset command will change bases:
#!/bin/ksh
typeset -i2 x # display x in binary x=56 echo $x
0
Response Number 2
Name: Jim Boothe Date: March 31, 2005 at 07:11:24 Pacific
Reply:
The bc command can convert from any base to any other base. The default input and output base is decimal, so you just need to change the output base to binary:
echo 'obase=2;56' | bc 111000
0
Response Number 3
Name: Jim Boothe Date: March 31, 2005 at 07:34:18 Pacific
Reply:
There are 10 kinds of people in the world ... Those who know binary and those who don't.
Summary: First, remember that the hex digits A - F have the values 10 - 15 (A=10, B=11...F=15). Then, number the columns from right to left starting with zero. Then calculate the value of each digit and add th...
Summary: What do you need to do when you have to download a binary executable from a site? Suppose that you have already the appropriate access to that remote system...
Summary: This has been driving me nuts for a few days now. I can't figure out how to multiply decimals in a korn script. What I have that works... time=$(($1*2)) echo $time What I have that doesn't work... ti...