Number Scale & Localization
A feature that allows developers to control the numerical scale (short vs long) and localize the conversion process according to culture-specific formatting rules.
Overview
Key Points
Aspect
Description
Code Example
// Initialize the control for number scale and localization
var humanizer = new SiticoneHumanizerInt();
// Set the control to use the American short scale for large numbers
humanizer.UseShortScale = true;
// Set the current culture to French (France) to localize decimal separators and number formatting
humanizer.CurrentCulture = new System.Globalization.CultureInfo("fr-FR");
// Convert a number to observe scale and localization effects
humanizer.Number = 1234567;
Console.WriteLine("Localized conversion: " + humanizer.Words);Best Practices
Practice
Recommendation
Code Example
Common Pitfalls
Pitfall
Explanation
Code Example
Usage Scenarios
Scenario
How It Works
Code Example
Real Life Usage Scenarios
Scenario
Explanation
Code Example
Troubleshooting Tips
Tip
Details
Code Example
Review
Aspect
Consideration
Summary
Summary Point
Description
Final Integration Example
Last updated