Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to pack and unpack 16 bit decimal with leading zeroby RichardK (Parson) |
on Jul 27, 2015 at 10:56 UTC ( [id://1136439]=note: print w/replies, xml ) | Need Help?? |
Just use printf.
You didn't say what you're trying to achieve and it looks like an XY problem, but you seem to be trying to recreate fixed point maths. Maybe reading up on that may help?
In Section
Seekers of Perl Wisdom
|
|