This is funky, but `d.normlaize()` on something like `15.00000` will leave `15E1`. The other option is `d.rstrip('0').rstrip('.') if '.' in d else d` which seems strictly worse.