## GNU sed, 16 + 1(r flag) = 17 bytes

<!-- language: lang-sed -->

    s:.*([^0]0*):\1:

It works by deleting everyhting until the right-most nonzero digit that is followed by trailing zeros or nothing at all. The script can also handle multiple inputs, one per line.

[**Try it online!**](https://tio.run/nexus/bash#K05NUdAtUlD/X2ylp6URHWcQa6ClaRVjaPVf/b8hlxGXoQGXIZC25DI24LK0BHJBfCBtZMBlBGSbGIDEjAwA) (all test examples)