Full Discussion: Decimal to BCD (Binary Coded Decimal)
Decimal to BCD (Binary Coded Decimal) Post 302463986 by Scott on Tuesday 19th of October 2010 03:59:12 AM
10-19-2010
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
 Scott View Public Profile for Scott Find all posts by Scott
Test Your Knowledge in Computers #490
Difficulty: Medium
Java source code is compiled into Java bytecode which is actual machine code.
True or False?

## unix script for converting a decimal to binary

Could anybody please help me in writing a script in unix for converting a decimal number to binary number.

## decimal to binary function error

I have the following simple code to return a binary number in a array format given an interger and the number of the bits for specifying the interger as binary number. #include <stdio.h> #include <stdlib.h> int main () { // int* get_binary_number(int* bit_array, int num, int...

## Converting Binary decimal coded values to Ascii Values

Hi All, Is there any command which can convert binary decimal coded values to ascii values... i have bcd values like below оооооооооооо0о-- -v - Pls suggest a way to convert this. Thanks, Deepti.Gaur

## Decimal to BCD (Binary Coded Decimal)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Design an algorithm that accepts an input a decimal number and converts it into BCD (Binary...

## How to get the negate of decimal to binary?

Hi All, New to this forum (and yes , a newbie in programming..:p) I have a decimal to binary converter script done this way : i=\$1 bit0=\$(( (i & 0x01) > 0 )) bit1=\$(( (i & 0x02) > 0 )) bit2=\$(( (i & 0x04) > 0 )) bit3=\$(( (i & 0x08) > 0 )) bit4=\$((...

## Convert hexa decimal to decimal

Hi, I want to convert two hexadecimal numbers to decimal using unix command line. 1cce446295197a9d6352f9f223a9b698 fc8f99ac06e88c4faf669cf366f60d I tried using `echo "ibase=16; \$no |bc` printf '%x\n' "1cce446295197a9d6352f9f223a9b698" but it doesn't work for such big number it...

## Binary to decimal for particular bits

Hello, I have script which work fine on particular data.file . The next feature I want to achieve is to get the decimal equivalent of data to data. The data looks like this : data(01000000000000000000110000000000) thank you.. #include <iostream> #include <fstream> #include...

## Urgent help needed.. C++ program to convert decimal to hexa decimal

Hi , seq can be 0...128 int windex = seq / 8; int bindex = seq % 8; unsigned char bitvalue = '\x01' << (7-bindex) ; bpv.bitmapvalue = bitvalue; This is the part of a program to convert decimal to bitmap value of hexadecimal. I want this to change to convert only to...

## Negative decimal to binary

Is there a fast way to convert a negative decimal value into a signed binary number in bash script ? I've looked a lot on internet but I saw nothing... (For exemple : -1 become 11111111.)
```httppower(8)							     powerman							      httppower(8)

NAME
httppower - communicate with HTTP based power distribution units

SYNOPSIS
httppower [--url URL]

DESCRIPTION
httppower  is  a  helper program for powerman which enables it to communicate with HTTP based power distribution units.	It is run interac-
tively by the powerman daemon.

OPTIONS
-u, --url URL
Set the base URL.

INTERACTIVE COMMANDS
The following commands are accepted at the httppower> prompt:

auth user:pass
Authenticate to the base URL with specified user and password, using ``basic'' HTTP authentication which sends the user and password
over the network in plain text.

seturl URL
Set the base URL.  Overrides the command line option.

get [URL-suffix]
Send an HTTP GET to the base URL with the optional URL-suffix appended.

post [URL-suffix] key=val[&key=val]...
Send an HTTP POST to the base URL with the optional URL-suffix appended, and key-value pairs as argument.

FILES
/usr/sbin/httppower
/etc/powerman/powerman.conf

ORIGIN
PowerMan was originally developed by Andrew Uselton on LLNL's Linux clusters.  This software is open source and distributed under the terms
of the GNU GPL.