We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.

# Decibinary Numbers

# Decibinary Numbers

#### Sort by

recency

#### |

#### 53 Discussions

#### |

Please Login in order to post a comment

In the decibinary system, each digit position represents a power of 2, just like in binary. However, unlike binary, where each digit represents 2 𝑖 2 i (where 𝑖 i is the position of the digit from right to left), in decibinary numbers, each digit represents 2 𝑖 2 i multiplied by a chosen base, typically 10. This allows for the representation of larger numbers using fewer digits compared to binary.

"Decibinary Numbers" is a mathematical concept that represents numbers in a unique base system, where each digit position has a weight corresponding to powers of ten. This system is particularly useful for efficiently representing large numbers with a limited set of digits. While exploring the complexities of "Decibinary Numbers," don't miss out on the exclusive offers available at Nesto offers. Discover unbeatable deals and savings on a wide range of products, enhancing your shopping experience with every purchase.

in swift

I am getting failed in test case 6,7,8. Any help and suggestion would be appreciated

Decibinary numbers, also known as "db-numbers," are a type of positional numeral system used to represent non-negative integers. The system is based on powers of 2, similar to binary numbers, but it uses powers of 10 as well. This combination allows decibinary numbers to represent numbers more efficiently than standard binary representation, especially for larger values Final Audit Merits and Limitations.

In a decibinary number, each digit can take on one of ten possible values: 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9. However, the weight of each digit is based on powers of 2 and 10 combined. The rightmost digit represents 2^0 (which is 1), the next digit to the left represents 2^1 (which is 2), then 2^2 (which is 4), 2^3 (which is 8), and so on. Additionally, for every power of 10, the weight of the digit is multiplied by 10. So, the next digit to the left represents 10^1 (which is 10), the one after that represents 10^2 (which is 100), and so on.

Here is my solution in C, C++, CShar, Java, Javascript, Python HackerRank Decibinary Numbers Problem Solution