HumanNumbers Showcase
Exhaustive technical demonstration of the high-performance, culture-aware .NET number formatting ecosystem
Quick Start Reference
1234567m.ToHuman(); // "1.23M"
val.ToHumanCurrency("USD"); // "$1.23M"
HumanNumber.Format(val).Strict().ToHuman();
Interactive Labs
Explore the full capabilities of HumanNumbers through hands-on demonstrations
Roman Numeral Lab
Convert integers to Roman numerals (1-3999)
Byte Size Formatter
Defaulting to IEC (Binary) prefixes for precise developer presentation
Robust Parsing Lab
Demonstrating HumanNumber.Parse
with round-trip support for formatted strings
🌍 Global Scaling & I18N
HumanNumbers is built on the native .NET CultureInfo
system, automatically respecting native numbering rules, separators, and currency symbols.
| Culture | Scaled (ToHuman) | Currency Format | Native Grouping | Rules |
|---|---|---|---|---|
|
Syncing global cultures...
|
||||
Interactive Policy Lab
Experiment with cross-culture numbering systems and custom policies
Control Panel
Live Output
Technical Policy Context
Financial Engineering Labs
Specialized formatting for trading desks, treasury markets, and accounting systems
Basis Points (bps)
Treasury Fractions
Check Writing
ASP.NET Core TagHelpers
Embed human-readable numbers directly in your Razor views
Financial Systems Playground
Advanced financial formatting with basis points, fractional prices, and check-writing
Live JSON Submission
ASP.NET Serialization Roundtrip
Idle// Hit Run to map via ASP.NET...
Performance & Benchmarks
HumanNumbers
is optimized for zero-allocation hot paths using Span<char>
| Method | Scenario / Input | Mean | Allocated | Engineering Context |
|---|---|---|---|---|
StandardScaled
|
Naive (999,499) | 78.33 ns | 80 B | Naive ToString + Concat approach. |
ToHuman()
|
Governed (999,499) | 172.79 ns | 56 B | 30% less memory than naive. |
ToHuman() (Span)
|
Governed (999,499) | 152.09 ns | 24 B | Optimized high-throughput path. |
TryParse()
|
$1.50M | 50.86 ns | 0 B | Zero-Alloc parsing verified. |
ToHumanBytes()
|
1024 Bytes | 56.62 ns | 40 B | SI/IEC compliant scaling. |
ToRoman()
|
2024 | 31.79 ns | 40 B | Optimized recursive buffer path. |
Built for Modern .NET Performance
Join a growing ecosystem of high-performance services leveraging HumanNumbers for governed, allocation-aware numeric presentation.
dotnet add package HumanNumbers
dotnet add package HumanNumbers.AspNetCore
Install-Package HumanNumbers
Install-Package HumanNumbers.AspNetCore