false in case of overflow or incorrect string.
Decimal!3 decimal; DecimalExponentKey key; assert(decimal.fromStringWithThousandsSeparatorImpl("12,345.678", ',', '.', key)); assert(cast(double) decimal == 12345.678); assert(key == DecimalExponentKey.dot); assert(decimal.fromStringWithThousandsSeparatorImpl("12,345,678", ',', '.', key, -3)); assert(cast(double) decimal == 12345.678); assert(key == DecimalExponentKey.none); assert(decimal.fromStringWithThousandsSeparatorImpl("021 345,678", ' ', ',', key)); assert(cast(double) decimal == 21345.678); assert(key == DecimalExponentKey.dot);
Handle thousand separators for non exponential numbers.