There was an error while loading. Please reload this page.
1 parent 6f54b2f commit 7dc486dCopy full SHA for 7dc486d
source/mir/bignum/decimal.d
@@ -408,7 +408,7 @@ struct Decimal(size_t maxSize64)
408
409
// prints e+/-exponent
410
auto expLength = printSignedToTail(exponent, buffer0[$ - N - 16 .. $ - 16], '+');
411
- buffer[$ - ++expLength] = 'e';
+ buffer[$ - ++expLength] = spec.exponentChar;
412
w.put(buffer[$ - expLength .. $]);
413
}
414
source/mir/format.d
@@ -208,6 +208,9 @@ struct NumericSpec
208
///
209
Format format;
210
211
+ /// Defaults to 'e'
212
+ char exponentChar = 'e';
213
+
214
/++
215
Precise output with explicit exponent.
216
Examples: `1e-6`, `6e6`, `1.23456789e-100`.
0 commit comments