toINR method
Formats this double as Indian Rupee (INR).
Note: Requires importing 'package:swift_flutter/core/currency.dart'
Example:
double price = 10000.50;
String formatted = price.toINR(); // '₹10,000.50'
Implementation
String toINR() {
// Currency is optional - import separately if needed
// For now, use simple formatting
return '₹${toStringAsFixed(2).replaceAllMapped(
RegExp(r'(\d{1,3})(?=(\d{3})+(?!\d))'),
(Match m) => '${m[1]},',
)}';
}