Closed imSanjaySoni closed 3 months ago
Fixed. The issue was with roundHalfUp
s line return fractionalPart >= 5 ? integerPart + 1 : integerPart;
because of ternary operators not supported by the package so I replaced this line with,
if (fractionalPart >= 5 ) {
return integerPart + 1;
}
else {
return integerPart;
}
and this worked for me.
Not able to perform simple addition if data types are different, throw an exception. 🙁
Dart code:
Exception: