BlackWasp
Prime Numbers - Sieve of EratosthenesPrime Numbers - Sieve of Eratosthenes
The Sieve of Eratosthenes is an ancient algorithm that can be used to find the series of prime numbers. The algorithm is a manual one, requiring a grid of numbers that can be highlighted as primes are found and struck off when not prime.
Rational Number ArithmeticRational Number Arithmetic
Standard arithmetic uses integers or floating-point values for operands and results. Rational numbers, or fractions, are not amongst the standard data types. In this article, we will create a structure for fractions and add arithmetic functionality.
A Generic Searchable Range CollectionA Generic Searchable Range Collection
A common programming task is to match a value to a group of ranges in order to find a value associated with that range. The .NET framework does not provide a collection class to support this functionality so a new generic collection must be created.
Convert Roman Numerals into NumbersConvert Roman Numerals into Numbers
In an earlier article we converted integer values into Roman numerals, an ancient numbering system that uses letters to represent values. In this article we will reverse the process, allowing Roman numerals to be evaluated as an integer.
Convert a Number into Roman NumeralsConvert a Number into Roman Numerals
Roman numerals are an ancient number system but still have uses in the modern world. Roman numerals are used to represent dates, adorn clock faces and for indexing. This article describes an algorithm and C# code to convert a number into Roman numerals.
Convert a Number into WordsConvert a Number into Words
When developing commercial applications, particularly when those applications perform activities such as cheque printing, it can be necessary to display numeric values using the equivalent text. This article describes an algorithm to achieve this.
RSS RSS Feed
87 users on-line