number-systems Questions

12

Solved

So I'm creating a program to show number systems, however I've run into issues at the first hurdle. The program will take a number from the user and then use that number throughout the program in o...
Fred asked 9/10, 2017 at 13:32

17

Solved

I have the following code to display in Indian numbering system. var x=125465778; var res= x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); Am getting this output :125,465,778. I need out...
Scurry asked 16/4, 2013 at 12:32

0

I am required to produce an accurate and reliable method for converting numbers into words for use in official document in the Indian Numbering System (as used in the countries of the Indian subcon...
Ernestinaernestine asked 8/7, 2020 at 12:51

12

Solved

I have and old(ish) C# method I wrote that takes a number and converts it to any base: string ConvertToBase(int number, char[] baseChars); It's not all that super speedy and neat. Is there a goo...
Adenoid asked 28/5, 2009 at 23:50

2

Solved

Given two numbers P and Q in decimal. Find all bases such that P in those bases ends with the decimal representation of Q. #include <bits/stdc++.h> using namespace std; void convert10to...
Goeselt asked 27/4, 2020 at 7:23

5

Solved

According to Apache Commons Lang's documentation for StringUtils.isNumeric(), the String '१२३' is numeric. Since I believed this might be a mistake in the documentation, I ran tests to verify the...
Fireworm asked 20/10, 2016 at 7:59

6

Solved

How to convert a long number in base 10 to base 9 without converting to string ?
Casino asked 8/10, 2010 at 7:48

5

I read that the range of an int is dependent on a byte. So taking int to be 4 bytes long, thats 4 * 8 bits = 32 bits. So the range should be : 2 ^ (32-1) = 2 ^ (31) Why do some people say its 2^...
Haggerty asked 12/10, 2013 at 11:20

1

Solved

I need to implement a decimal to chars converter. I have 26 chars available, so it's about converting an integer to base 26 system and then, changing each number to it's alphabet counterpart. I don...
Secretin asked 22/7, 2013 at 10:38

3

Solved

What is 2's Complement Number? Why do we take 1's Complement and add 1 to it? Why don't we subtract 1 after taking 1's Complement? Why do computers use 2's Complement?
Indiscernible asked 24/5, 2013 at 5:56

4

Solved

I have tried to search for the duplicates of my problem, but could not find. Also, sorry for the not so understandable title. I am so confused about what I am searching, and also about the terminol...
Courtland asked 21/1, 2013 at 12:12

16

I've noticed recently that there are a great many algorithms out there based in part or in whole on clever uses of numbers in creative bases. For example: Binomial heaps are based on binary...
Ozalid asked 18/3, 2011 at 18:49

2

Solved

I have written some general functions to convert between decimal and any other base-n number system(n<=36 for now) and vice-versa. Don't want to make things messy here so i have posted the code ...
Habitable asked 28/3, 2010 at 6:40
1

© 2022 - 2024 — McMap. All rights reserved.