2025-08-13 00:26:59 +07:00
|
|
|
part of 'extension.dart';
|
|
|
|
|
|
|
|
|
|
extension IntegerExt on int {
|
|
|
|
|
String get currencyFormatRp => NumberFormat.currency(
|
|
|
|
|
locale: 'id',
|
|
|
|
|
symbol: 'Rp. ',
|
|
|
|
|
decimalDigits: 0,
|
|
|
|
|
).format(this);
|
2026-08-21 22:31:54 +07:00
|
|
|
|
|
|
|
|
/// Format ribuan tanpa simbol mata uang, contoh: 1.639
|
|
|
|
|
String get thousandFormat => NumberFormat.decimalPattern('id').format(this);
|
2025-08-13 00:26:59 +07:00
|
|
|
}
|