|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Hex Number Formatting
Replace(RJustify(yourHex, 3), " ", "0", "all")John M Bliss 01/08/09 08:15 A John, that's simpler than I thought! Many thanks. :-)Kamru Miah 01/08/09 10:17 A I specialize in "simple." ;-)John M Bliss 01/08/09 10:20 A Hello, I have requirement to use only 3-char to represent value above 999, so I decided to use FormatBaseN() function convert the number to hex (i.e. FFF will give upto 4096), but I can no longer use NumberFormat() to add leading zeros. Please let me know of any simple method/function to do this in ColdFusion. Thanks Replace(RJustify(yourHex, 3), " ", "0", "all") On Thu, Jan 8, 2009 at 6:11 AM, Kamru Miah <k.miah@csl.gov.uk> wrote: > Hello, I have requirement to use only 3-char to represent value above 999, > so I decided to use FormatBaseN() function convert the number to hex (i.e. > FFF will give upto 4096), but I can no longer use NumberFormat() to add > leading zeros. Please let me know of any simple method/function to do this > in ColdFusion. Thanks John, that's simpler than I thought! Many thanks. :-) >Replace(RJustify(yourHex, 3), " ", "0", "all") I specialize in "simple." ;-) On Thu, Jan 8, 2009 at 9:06 AM, Kamru Miah <k.miah@csl.gov.uk> wrote: > John, that's simpler than I thought! Many thanks. :-) > > >Replace(RJustify(yourHex, 3), " ", "0", "all")
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||