Class: HumanNumber::NumberSystem::IndianSystem
- Inherits:
-
DefaultSystem
- Object
- DefaultSystem
- HumanNumber::NumberSystem::IndianSystem
- Defined in:
- lib/human_number/number_system.rb
Overview
Unlike Western and East Asian systems, the Indian system uses a mixed base progression that doesn't follow strict powers of 10 or 1000, reflecting the unique linguistic structure.
Indian subcontinent number formatting system using traditional South Asian units.
This system implements the traditional Indian number formatting convention using the progression: thousand (1,000), lakh (100,000), crore (10,000,000). This aligns with how large numbers are conceptualized and spoken in Hindi, Urdu, Bengali, and Indian English contexts.
The system follows a mixed base progression: thousands up to lakh, then lakhs up to crore, maintaining the linguistic patterns familiar to speakers of Indian subcontinent languages.
Constant Summary collapse
- UNIT_DEFINITIONS =
[ { key: :crore, divisor: 10_000_000 }, { key: :lakh, divisor: 100_000 }, { key: :thousand, divisor: 1_000 }, ].freeze
Method Summary
Methods inherited from DefaultSystem
format_below_min_unit, format_in_abbreviated_mode, format_in_complete_mode, format_number