The underlying perl library natively handles strings fine - just change '%25d' to '%25s':
zen% perl -MMath::BigInt -e '$i = Math::BigInt->new("123_456_789_000 +_000"); printf "%025s\n", $i' 0000000000123456789000000 zen%
Hugo
In reply to Re^3: Math::BigInt and Leading Zeros
by hv
in thread Math::BigInt and Leading Zeros
by aplonis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |