mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 08:50:40 +00:00
130f5ff0b2
* wip * implemented `CalibrationDialog` * integrated calibration to the metering bloc * checked legacy feature
19 lines
395 B
Dart
19 lines
395 B
Dart
extension SignedString on num {
|
|
String toStringSigned() {
|
|
if (this > 0) {
|
|
return "+${toString()}";
|
|
} else {
|
|
return toString();
|
|
}
|
|
}
|
|
}
|
|
|
|
extension SignedStringDouble on double {
|
|
String toStringSignedAsFixed(fractionDigits) {
|
|
if (this > 0) {
|
|
return "+${toStringAsFixed(fractionDigits)}";
|
|
} else {
|
|
return toStringAsFixed(fractionDigits);
|
|
}
|
|
}
|
|
}
|