Create a short string representation of a float, which is %f formatting with trailing zeros and the decimal point removed.
(x)
| 97 | |
| 98 | |
| 99 | def _short_float_fmt(x): |
| 100 | """ |
| 101 | Create a short string representation of a float, which is %f |
| 102 | formatting with trailing zeros and the decimal point removed. |
| 103 | """ |
| 104 | return f'{x:f}'.rstrip('0').rstrip('.') |
| 105 | |
| 106 | |
| 107 | class _XMLWriter: |
no outgoing calls
no test coverage detected
searching dependent graphs…