Questions tagged [numeral-system]

A writing system for expressing numbers.

A writing system for expressing numbers. See also: https://en.wikipedia.org/wiki/List_of_numeral_systems

6 questions
5
votes
1 answer

How can I convert between numeral systems in R?

I see that there is a built-in function for the...rather abstract...use of transforming from the a decimal representation to roman numerals (Convert roman numerals to numbers in R), but I'm not able to find a built-in way to convert from decimal to…
rcorty
  • 1,140
  • 1
  • 10
  • 28
1
vote
1 answer

What is the most intuitive method to input a base-20 numeral system in regular keyboards?

I am part of an effort of getting the Kaktovik numerals into Unicode (https://en.wikipedia.org/wiki/Kaktovik_numerals). As you can see the system has 20 digits with a featural composition. One of the questions I was asked, is what way would be the…
1
vote
4 answers

Printing the value of integer data type using %x in printf statement

Got confused with the following peice of code. #include void main() { int a=0100; printf("%x",a); } The value I am getting is 40. Can someone explain me whats going on here? Note : When I removed the digit 0 before digit 1 then its coming…
roxid
  • 493
  • 4
  • 14
0
votes
1 answer

Is there a digit separator in R like using underscore in Python?

In Python there is a way to make large numerals more readable using the underscore, e.g. 1000000 == 1_000_000, as discussed several times here. However, is there something similar in R? Googling it just leads me to how to format the variable as a…
chickenNinja123
  • 311
  • 2
  • 11
-1
votes
1 answer

English numerals to integers (iterative function)

Background This stems from the kata (challenge) parseInt (reloaded). In theory, "nine hundred ninety-nine thousand nine hundred and ninety-nine" returns 999999—this is working now, but shorter cases like "two thousand" now fail. Note that I was…
niamulbengali
  • 292
  • 1
  • 3
  • 16
-1
votes
1 answer

Python Ancient numeral to numeral

def babylonian(symbols): table=[["T",1], ["<",10],["\\",0]] returning=0 for pair in table: forTrue=True while forTrue: if len(symbols)>=len(pair[0]): if symbols[0:len(pair[0])]==pair[0]: …
Dan Osmith
  • 43
  • 4