Text Customization and Styling Options
A feature that allows developers to control how the numerical words are formatted and styled, including negative number notation and casing preferences.
Overview
Key Points
Aspect
Description
Code Example
// Initialize the control for text customization
var humanizer = new SiticoneHumanizerInt();
// Set negative number prefix to "negative" instead of the default "minus"
humanizer.NegativePrefix = "negative";
// Set the output casing to Upper
humanizer.OutputCasing = Casing.Upper;
// Enable insertion of "and" between hundreds and tens
humanizer.UseAndInHundreds = true;
// Enable ordinal conversion for a more descriptive representation
humanizer.UseOrdinal = true;
// Optionally, convert numbers to Roman numerals by enabling this flag
humanizer.UseRomanNumerals = false; // Set to true to enable Roman numeral conversionBest 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