in reply to Hex floating point format specifier?
EDIT: I'm sure I misunderstood the OPs question. This can be reaped.
Are you going from int to hex? If not, can you clarify?
perldoc -f sprintf
perl -E '$x="200";$y=sprintf("%.02x", $x); say $y;' c8 [download]
-stevieb