String? string({int? decimalPlaces}) { return sprintf("%.${decimalPlaces}f", [this?.toDouble() ?? 0.0]); }