augustpete has asked for the wisdom of the Perl Monks concerning the following question:
I am attempting to convert a String Decimal value to Hex, and all I get back are a series of fffff
I am using
printf ("%x\n",$esn)
$esn declared as my $esn and the value is a character string from the Sql select statement.
printng $esn before the conversion - the number's are
24600988483
Comes our as
FFFFFFFF
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: String to Hex
by jettero (Monsignor) on May 22, 2007 at 21:03 UTC | |
Re: String to Hex
by shmem (Chancellor) on May 22, 2007 at 21:05 UTC | |
Re: String to Hex
by GrandFather (Saint) on May 22, 2007 at 21:08 UTC | |
by shmem (Chancellor) on May 22, 2007 at 21:14 UTC | |
by blazar (Canon) on May 22, 2007 at 22:24 UTC | |
by BrowserUk (Patriarch) on May 22, 2007 at 22:40 UTC | |
by GrandFather (Saint) on May 22, 2007 at 23:57 UTC | |
by BrowserUk (Patriarch) on May 23, 2007 at 00:05 UTC | |
Re: String to Hex
by graff (Chancellor) on May 22, 2007 at 21:07 UTC | |
Re: String to Hex
by BrowserUk (Patriarch) on May 22, 2007 at 21:19 UTC |
Back to
Seekers of Perl Wisdom