import 'package:intl/intl.dart';

extension XNumExtension on num? {
  String get separatedByCommaFa {
    final formatter = NumberFormat('#,###', 'fa_IR');
    return this == null ? '':formatter.format(this);
  }


  String get separatedByComma {
    final formatter = NumberFormat('#,###', 'en_US');
    return this == null ? '':formatter.format(this);
  }
}
