Ordinal number is a sequence of segments separated by dots. A segment is a cardinal number from 0 to 16777215.
Each segment number can be directly followed by its variant symbol - a letter from "a" to "z" (or two letters).
Variant "a" is the first, variant "z" is 26th. If a segment has more variants than 26 then subsequent variants are symbolized by two-letter sequences: "aa", "ab", "ac" till "iu" (last possible variant is 255th).
Ordinal numbers are easily converted to/from strings. One-segment ordinal numbers (without) variants are compatible with integer numbers, two-segment ordinal numbers are compatible with real numbers.
Install-Package Qhta.OrdNumbers -Version 2.1.0
dotnet add package Qhta.OrdNumbers --version 2.1.0
<PackageReference Include="Qhta.OrdNumbers" Version="2.1.0" />
paket add Qhta.OrdNumbers --version 2.1.0
Operations on OrdNum parts implemented: StartsWith, LeftSegments, RightSegments, MidSegments.
- No dependencies.
This package is not used by any popular GitHub repositories.