v6.3.0
fixed
गणितीय संचालन, प्रस्तुति और विश्लेषण के साथ निश्चित स्केल दशमलव संख्याएँ।
12लाइक 1.6 लाख30-दिन डाउनलोड160Pub अंक
AndroidiOSWebmacOSWindowsLinux
निश्चित अक्षर सटीकता संख्याओं का डार्ट क्राफ्ट।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
The Fixed package allows you to store and perform math on decimal numbers with a fixed scale (fixed no. of decimal places).
All amounts are stored as BigInts to allow precision math to be performed.
The features of Fixed are:
Fixed is sponsored by OnePub, the Dart private package repository.
You can create a Fixed instance from a number sources
var t1 = Fixed.fromNum(1); /// == 1.00
var t2 = Fixed.fromNum(1, decimalDigits: 3); /// == 1.000
var add = t1 + 10;
var multiply = t1 * t2;
var t3 = Fixed.parse("1.23356"); // == 1.23356, decimalDigits: 5
if (t1 == t2) // true
{
print(t1.format('0.##')); // '1.00'
print(t3.format('0.###')); // '1.123'
}
Full documentation can be found here.
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗