Search
 
SCRIPT & CODE EXAMPLE
 

DART

flutter format currency fcfa

final oCcy = NumberFormat.currency(
      locale: 'eu',
      customPattern: '#,### u00a4',
      symbol: 'FCFA',
      decimalDigits: 2);

print(oCcy.format(12345)) // 12.345,00 FCFA
Comment

format currency flutter

import 'package:intl/intl.dart';

final oCcy = new NumberFormat("#,##0.00", "en_US");

void main () {

  print("Eg. 1: ${oCcy.format(123456789.75)}");
  print("Eg. 2: ${oCcy.format(.7)}");
  print("Eg. 3: ${oCcy.format(12345678975/100)}");
  print("Eg. 4: ${oCcy.format(int.parse('12345678975')/100)}");
  print("Eg. 5: ${oCcy.format(double.parse('123456789.75'))}");

/* Output :  

Eg. 1: 123,456,789.75
Eg. 2: 0.70
Eg. 3: 123,456,789.75
Eg. 4: 123,456,789.75
Eg. 5: 123,456,789.75


 pubspec.yaml :

  name: testCcy002
  version: 0.0.1
  author: BOH
  description: Test Currency Format from intl.
  dev_dependencies:
    intl: any

   Run pub install to install "intl"  
*/
}
Comment

indian money format in flutter

final indianRupeesFormat = NumberFormat.currency(
           name: "INR",
           locale: 'en_IN',
           decimalDigits: 0, // change it to get decimal places
           symbol: '₹ ',
        );
Comment

PREVIOUS NEXT
Code Example
Dart :: dart string interpolation 
Dart :: flutter espacio entre widgets 
Dart :: flutter dropdownbutton enum 
Dart :: generate method o dart list 
Dart :: Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:17:9-45 
Dart :: flutter print line char limit 
Dart :: Send HTTP POST request in Flutter or Dart 
Dart :: how to replace commas in model array of strings in dart 
Dart :: flutter firestore crud 
Dart :: flutter tooltip padding 
Dart :: install getx 
Dart :: flutter text 
Dart :: compute flutter 
Dart :: flutter safearea 
Dart :: how to get terminal http request time 
Dart :: what is final and const verabile in flutter 
Dart :: flutter snackbar position 
Dart :: how to add cards in flutter 
Dart :: convert iso date string into date and time string flutter 
Dart :: how to display current date time in flutter 
Dart :: dart for in loop 
Dart :: flutter snackbar action button text color 
Dart :: getit flutter 
Dart :: flutter column 
Dart :: uinstall php server on ubuntu 
Dart :: dart ?? operator 
Dart :: flutter copy 
Dart :: flutter Scaffold.of() called with a context that does not contain a Scaffold 
Dart :: dart while loop 
Dart :: split double value in dart 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =