truncate

Truncate trailing '0' and '.' from a string, such that 200.000 becomes 200, and 20.10 becomes 20.1

Returns a potentially shorter slice of what you give it.

T[]
truncate
(
T
)
(
T[] s
)

Meta