Overview
Sponsored by OnePub
Features
var t1 = Fixed.fromNum(1); /// == 1.00
var t2 = Fixed.fromNum(1, scale: 3); /// == 1.000
var add = t1 + 10;
var multiply = t1 * t2;
var t3 = Fixed.parse("1.23356"); // == 1.23356, scale: 5
if (t1 == t2) // true
{
print(t1.format('0.##')); // '1.00'
}
Last updated
Was this helpful?