Top "Number-systems" questions

Quickest way to convert a base 10 number to any base in .NET?

I have and old(ish) C# method I wrote that takes a number and converts it to any base: string …

c# .net int base number-systems
Displaying a number in Indian format using Javascript

I have the following code to display in Indian numbering system. var x=125465778; var res= x.toString().replace(/\B(?=(\d{3})+(?!\…

javascript jquery number-systems
Checking to see if a string is an integer or float

So I'm creating a program to show number systems, however I've run into issues at the first hurdle. The program …

python python-3.x number-systems
How to find 10's complement of decimal number

Whats the 10's complement of 1056.074? Please check the solution: 9999.999 - 1056.074 = 8943.925 (9's complement of 1056.074) Now 1 is added to .074 or 8943?

math decimal decimal-point complement number-systems
How does int(x[,base]) work?

The output for the following code is: int("12", 5) O/P: 7 int("0", 5) O/P: 0 int("10", 2) O/P: 2 I cannot make sense …

python python-3.x int output number-systems
Why does Apache Commons consider '१२३' numeric?

According to Apache Commons Lang's documentation for StringUtils.isNumeric(), the String '१२३' is numeric. Since I believed this might …

java unicode number-systems apache-commons-lang3
Octal representation inside a string in C

In the given program: int main() { char *p = "\0777"; printf("%d %d %d\n",p[0],p[1],p[2]); printf("--%c-- --%…

c octal number-systems
What is the importance of 1's complement and 2's complement in Binary

I'm trying to learn binary number system and almost very new. I just finished some chapter on binary number conversation,…

c binary computer-science number-systems
Java code to convert from Base-10 to Base-9

How to convert a long number in base 10 to base 9 without converting to string ?

java number-systems