Omgili - forum search, search forums  
  

Discussions about binary numbers

Displaying 1 - 10 out of 29,893 discussions.  
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
I need a program to convert Binary numbers into Decimal number in Java or in C++. is there some one who can help me.
Started by on , 5 posts by 5 people.  
For example 1101 1001 is: (1 x 2^7) + (1 x.) Implement a for loop... .
Use binary expansion.
Is only limited by available memory.
The first element i.e.
2.) Store the number in an array.
: 1.) Prompt the user for a binary number.
How can I add, subtract, and compare binary numbers in Python without converting to decimal?
Started by on , 5 posts by 5 people.  
The base only matters when reading or outputting numbers, adding after: ~ Not ^ XOR | Or & And....
binary numbers is just the same as adding decimal number : it is just a matter of representationBinary, decimal, hexadecimal...
Why do most computer programming languages not allow binary numbers to be used like decimal or hexadecimal? In VB.NET you could write a hexadecimal number like &H4 In C you could write a hexadecimal number like 0x04 Why not allow binary numbers? &B010...
Started by on , 18 posts by 18 people.  
In C++0x with user defined literals binary numbers will be supported, I'm not sure if it will be part of the standard Lisp allows binary numbers....
Python 2.6+ allows binary literals (0b101010), so does Ruby.
number.
Ask your Facebook Friends
I am taking a beginning c++ class, and would like to convert letters between hex representations and binary. I can manage to print out the hex numbers using: for(char c = 'a'; c <= 'z'; c++){ cout << hex << (int)c; } But I can't do the ...
Started by on , 7 posts by 7 people.  
You need to perform the coversion by hand, probably; "1111"; break; } } } You can easily write a mapping between the hex charachters an their binary"; }; Like so: for(char c = 'a'; c <= 'z....
There isn't a binary io manipulator in C++.
Possible Duplicate: How is floating point stored? When does it matter? How does float numbers represented in a binary string in any programming language or generally? Because I understand that positive whole numbers are converted to binary by converting...
Started by on , 3 posts by 3 people.  
Think of any floating point number as represented....
7 == 0b111) sgnificand-decimal (binary decimal notation where each to raise the radix.decimal - typically a binary number) .
Typically just a binary number eg.
Consider an n-bit binary number in the following form: b n−1 b n−2 b n−3 ...b 0 Each b i is a single bit in the n-bit binary number. Each b i has one of two possible values: 0 or 1. An example of a 6-bit binary number is: 110011. Inside the computer, ...
Started by on , 5 posts by 5 people.  
binary binary(orig_i_nal); break else....
(test % (1 << m) == 101) Edit: In python...
The tail end of the number you're testing one step at a time with x/2 or x >> 1 and see if the length of remainder you care about matches.
Hewlett-Packard is applying a patent for "A method of converting a number to a binary representation based on a processor word size ...". The patent itself is now up on Peer-to-Patent Australia for public review. I don't think the concept nor the method...
Started by on , 4 posts by 4 people.  
The patent covers a particular binary representation of decimal numbers, which may well be novel and non-obvious if that particular means word size optimized storage to hold large numbers....
You're reading the abstract, not the patent.
I have defined data type for Binary numbers as follows data Bin = Nil | O Bin | I Bin deriving (Show, Eq) i want to define a function reverse :: Bin -> Bin so that when i give input like reverse (I (O (I (I Nil)))) i should get the outut I (I (O (I...
Started by on , 7 posts by 7 people.  
The same principle can be applied to your binary number type to reverse the order of the digits.
There have been several questions posted to SO about floating-point representation. For example, the decimal number 0.1 doesn't have an exact binary representation, so it's dangerous to use the == operator to compare it to another floating-point number...
Started by on , 19 posts by 19 people.  
What we need to represent decimal numbers as a sequence of binaryDecimal numbers can be represented exactly, if you have enough space - just not by floating binary as the simplest example....
In the decimal expansion of the number.
Hi, I have tried 2 questions, could you tell me whether I am right or not? Regular expression of nonnegative integer constants in C, where numbers beginning with 0 are octal constants and other numbers are decimal constants. I tried 0([1-7][0-7]*)?|[1...
Started by on , 6 posts by 6 people.  
Since this is a homework.
Your regex for integer constants will not match base-10 numbers longer than two digits and octal numbers longer than three digits (2 if you don't count the leading zero).
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost