Sitemap
Go With Flutter

Flutter Tips & Tricks.

Member-only story

30 Flutter Tips| FT28: Numeral System In Flutter

--

Flutter Tips 28 of #30FlutterTips With LakshydeepVikram series which had explored to display number as per International or Indian Numeral System. International Numeral System means the system that counts number in the form of ONES, TENS, HUNDREDS, THOUSANDS, TEN THOUSANDS, HUNDRED THOUSANDS, MILLION, etc. Indian or Hindu-Arabic System means the system that counts number in the form of ONES, TENS, HUNDREDS, THOUSANDS, TEN THOUSANDS, LAKH , TEN LAKH, CRORE, etc.
You can search for #30FlutterTips for more. If you like this series, please don’t forget to share with #30FlutterTips tag.

Press enter or click to view image in full size

FT28: Numeral System In Flutter

Install Package:

numeral_system: ^1.0.0

Use NumeralSystem Package:

//for international system
NumeralSystem(
numberSystem: NumberSystem.international,
digit: 987387659876,
afterDecimalDigits: 3,
),


// for Indian
NumeralSystem(
numberSystem: NumberSystem.indian,
digit: 987387659876,
afterDecimalDigits: 5,
),

You can add styles as well and choose the system. Moreover, you can also select the number of digits you want so after decimal.

The whole code had been uploaded here:

--

--

Lakshydeep Vikram
Lakshydeep Vikram

Written by Lakshydeep Vikram⁠

Software Developer | Google Dev Library Author | Flutter Enthusiast