Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 16,050 times

Contents

Related Categories

Number Systems - The Different Systems

Nimpo

The Different Systems

    A Number System is simply a counting system.  Each system has its own base, or number of unique symbols.  The Decimal (Base 10) has 10 such unique symbols (0-9).  Binary has 2 (0 and 1).  Any thing above Base 10 uses a numeric and letter combination (such as Hexadecimal's 0-9 A-F).

    Here is a (not complete) list of Number Systems (The "no-name" entries are commonly refered to as:  Base #):

Public Enum NumeralSystems As Short
RomanNumerals = 0
Unary = 1
Binary = 2
Ternary = 3
Quaternary = 4
Quinary = 5
Senary = 6
Septenary = 7
Octal = 8
Novenary = 9
Undenary = 11
[Decimal] = 10
Duodecimal = 12
Tredecimal = 13
Quattuordecimal = 14
Quindecimal = 15
Hexadecimal = 16
Septendecimal = 17
Octodecimal = 18
Nonadecimal = 19
Vigesimal = 20
'
Quinquevigesimal = 25
Hexavigesimal = 26
Septemvigesimal = 27
'
Trigesimal = 30
'
Quadragesimal = 40
'
Quinquagesimal = 50
'
Sexagesimal = 60
'
Quattuorsexagesimal = 64
'
Septuagesimal = 70
'
Octagesimal = 80
'
Nonagesimal = 90
'
Centesimal = 100
'
Centivigesimal = 120
'
Bicentimal = 200
'
Tercentimal = 300
'
Quattrocentimal = 400
'
Quincentimal = 500
'
Millesimal = 1000
End Enum

Languages I know (from most comfortable with, to least comfortable with): VB.NET, C#, VB6, and C/C++

I'm 19 years old and pursuing a MS in Computer Science at the Colorado School of Mines. My dad introduced me to programming (with Visual Basic 6) when I was about 10. When I was 13 I was accepted and enrolled at Arapahoe Community College for a programming class and continued there during the summers while in high school.


Check me out!
Need a vacation?

Comments

  • Re: [5046] Number Systems

    Posted by Nimpo on 11 Sep 2007

    I have just returned from an extended absence from this forum so I realize this is rather late.

    It looks good, the only thing I can spot is the line where you catch the Exception.  Not fin...

  • Re: [5046] Number Systems

    Posted by pmccombs on 24 May 2007

    Thanks for the Roman Numeral example! I made some equivalent functions in C# using Enum's static methods. This results in more concise versions of the two primary methods described in the article. The...