Quote:
Originally Posted by Pepin33
Yes, you're right. That is. But my books have a "custom" identifier to identify every one. And the value for this identifier was generated as {'my_id:':'%08d'%book_id}.
Now, I want to save those books using the identifier, but I want to remove left zeros. And if you're thinking about using book_id instead of my_id, not, that doesn't work, because the books are translated to another library so now my_id is not the same as the book_id...
|
Off the top of my head
use Nested commands (program mode),:
convert the numeric string portion to a (integer)Number, then convert that back to a string. That should lose the leading zeros.