toStringOpt method
Gets an optimized pascal value with less zeros as possible.
Implementation
String toStringOpt({decimals = 4}) {
return toFixed(this.pasc!)
.replaceFirst(RegExp(r'[0]+$'), '')
.replaceFirst(RegExp(r'[\.]+$'), '');
}
Gets an optimized pascal value with less zeros as possible.
String toStringOpt({decimals = 4}) {
return toFixed(this.pasc!)
.replaceFirst(RegExp(r'[0]+$'), '')
.replaceFirst(RegExp(r'[\.]+$'), '');
}