RE: Decimal to Hex conversion.

2014-10-15 Thread Kessler CTR Mark J
("F334", 16)); parseInt(): 4080218932 int():-214748364 -Mark -Original Message- From: Saju Thankathurai [mailto:sathikeshj...@gmail.com] Sent: Tuesday, October 14, 2014 10:41 PM To: users@flex.apache.org Subject: RE: Decimal to Hex conversion. Using uint removes the padded &#x

RE: Decimal to Hex conversion.

2014-10-14 Thread Saju Thankathurai
ng it as > all positive. Meaning... > > > uint(-214748364). toString(16).toUpperCase(); > > > BTW this removes the padded "F"s. > > > -Mark > > -Original Message- > From: Saju Thankathurai [mailto:sathikeshj...@gmail.com] > Sent: Tuesday, Octo

RE: Decimal to Hex conversion.

2014-10-14 Thread Kessler CTR Mark J
y, October 14, 2014 11:52 AM To: users@flex.apache.org Subject: Re: Decimal to Hex conversion. But Number("-214748364").toString(16).toUpperCase(); returned me only -CCC. How can we get the value F333 3334? -- Regards Saju Thankathurai, On Tue, Oct 14, 2014 at 9:08 PM

Re: Decimal to Hex conversion.

2014-10-14 Thread Saju Thankathurai
But Number("-214748364").toString(16).toUpperCase(); returned me only -CCC. How can we get the value F333 3334? -- Regards Saju Thankathurai, On Tue, Oct 14, 2014 at 9:08 PM, Kessler CTR Mark J < mark.kessler@usmc.mil> wrote: > Oh didn't notice the negative sign. > Yes that

RE: Decimal to Hex conversion.

2014-10-14 Thread Kessler CTR Mark J
Oh didn't notice the negative sign. Yes that changes it to the other way. -214,748,364 = F333 3334 -Mark

RE: Decimal to Hex conversion.

2014-10-14 Thread Kessler CTR Mark J
214,748,364 = 0xCCC -Mark -Original Message- From: Saju Thankathurai [mailto:sathikeshj...@gmail.com] Sent: Tuesday, October 14, 2014 10:49 AM To: users@flex.apache.org Subject: Re: Decimal to Hex conversion. Hi, I need to convert a larger value *-214748364 *to hexa decimal value

Re: Decimal to Hex conversion.

2014-10-14 Thread Subscriptions
und I was even totally wrong and then wanted to give the right answer, for himself, I don't know what was his goal really. Frédéric THOMAS Subject: Re: Decimal to Hex conversion. From: gsmit...@hotmail.com Date: Tue, 30 Sep 2014 09:17:18 -0700 To: users@flex.apache.org Converting d

Re: Decimal to Hex conversion.

2014-10-14 Thread Saju Thankathurai
Saju Thankathurai, > > > > > > > > > > > > On Wed, Oct 1, 2014 at 5:09 AM, Frédéric THOMAS < > > webdoubl...@hotmail.com > > > > > > > > wrote: > > > > > > > >> Hi gordon, really, I didn't want, just

Re: Decimal to Hex conversion.

2014-10-02 Thread Javier Guerrero García
Thankathurai, > > > > > > > > > On Wed, Oct 1, 2014 at 5:09 AM, Frédéric THOMAS < > webdoubl...@hotmail.com > > > > > > wrote: > > > > > >> Hi gordon, really, I didn't want, just because some else wanted and I > > >

Re: Decimal to Hex conversion.

2014-10-01 Thread Saju Thankathurai
Wed, Oct 1, 2014 at 5:09 AM, Frédéric THOMAS > > > wrote: > > > >> Hi gordon, really, I didn't want, just because some else wanted and I > >> answered giving a mathematical uncorrected solution, I pushed the thing > a > >> little more deeply and found

Re: Decimal to Hex conversion.

2014-10-01 Thread Gordon Smith
giving a mathematical uncorrected solution, I pushed the thing a >> little more deeply and found I was even totally wrong and then wanted to >> give the right answer, for himself, I don't know what was his goal really. >> >> Frédéric THOMAS >> >>

Re: Decimal to Hex conversion.

2014-09-30 Thread Saju Thankathurai
cted solution, I pushed the thing a > little more deeply and found I was even totally wrong and then wanted to > give the right answer, for himself, I don't know what was his goal really. > > Frédéric THOMAS > > > Subject: Re: Decimal to Hex conversion. > > From: gsmit

RE: Decimal to Hex conversion.

2014-09-30 Thread Frédéric THOMAS
oal really. Frédéric THOMAS > Subject: Re: Decimal to Hex conversion. > From: gsmit...@hotmail.com > Date: Tue, 30 Sep 2014 09:17:18 -0700 > To: users@flex.apache.org > > Converting decimal numbers with fractional parts to hex is rather unusual. > I'm curious why you want

Re: Decimal to Hex conversion.

2014-09-30 Thread Gordon Smith
Converting decimal numbers with fractional parts to hex is rather unusual. I'm curious why you want to do this. - Gordon > On Sep 29, 2014, at 4:23 AM, "Saju Thankathurai" > wrote: > > Hi, > > How can we convert a decimal value to Hex value? > > I need to convert *1345.4567 *value to HEX v

RE: Decimal to Hex conversion.

2014-09-29 Thread Frédéric THOMAS
And for even a better precision (tried on PI), fractionalPart = parseFloat((product - carry).toFixed(iterationMax - i)); Frédéric THOMAS > From: webdoubl...@hotmail.com > To: users@flex.apache.org > Subject: RE: Decimal to Hex conversion. > Date: Mon, 29 Sep 2014 22:13:25 +0100 &

RE: Decimal to Hex conversion.

2014-09-29 Thread Frédéric THOMAS
éric THOMAS > From: webdoubl...@hotmail.com > To: users@flex.apache.org > Subject: RE: Decimal to Hex conversion. > Date: Mon, 29 Sep 2014 21:24:01 +0100 > > Ok, I found the problem in mine for big numbers. > > @harbs, your function works for big numbers but not fractional

RE: Decimal to Hex conversion.

2014-09-29 Thread Frédéric THOMAS
Ok, I found the problem in mine for big numbers. @harbs, your function works for big numbers but not fractional, anyway, I didn't optimize mine, so, I will use its recursive pattern to recode mine, thanks. Frédéric THOMAS > Subject: Re: Decimal to Hex conversion. > From: harbs.li..

Re: Decimal to Hex conversion.

2014-09-29 Thread Harbs
-> 0x3.0 -> 0x3.243F6A8885A308D > > In between I'll try to find a way to code the correct function. > > Frédéric THOMAS > >> From: webdoubl...@hotmail.com >> To: users@flex.apache.org >> Subject: RE: Decimal to Hex conversion. >> Date: Mon, 29 Sep

RE: Decimal to Hex conversion.

2014-09-29 Thread Frédéric THOMAS
om > To: users@flex.apache.org > Subject: RE: Decimal to Hex conversion. > Date: Mon, 29 Sep 2014 20:34:51 +0100 > > Actually I wasn't sure of mathematical correctness of the solution I gave > above and I end up writing my own function for it, so, use it instead of the

RE: Decimal to Hex conversion.

2014-09-29 Thread Frédéric THOMAS
THOMAS > From: webdoubl...@hotmail.com > To: users@flex.apache.org > Subject: RE: Decimal to Hex conversion. > Date: Mon, 29 Sep 2014 13:24:21 +0100 > > And to be sure the user is allowed to type decimals only, I would add on key > down listener a check for it like this: > >

RE: Decimal to Hex conversion.

2014-09-29 Thread Frédéric THOMAS
split(".").map(function (item:*, > > index:int, array:Array):String { > > return int(item).toString(16).toUpperCase(); > > }).join("."); > > > > Frédéric THOMAS > > > > > From: miguel.cd.ferre...@hotmail.com > > >

Re: Decimal to Hex conversion.

2014-09-29 Thread Saju Thankathurai
16).toUpperCase(); > }).join("."); > > Frédéric THOMAS > > > From: miguel.cd.ferre...@hotmail.com > > To: users@flex.apache.org > > Subject: RE: Decimal to Hex conversion. > > Date: Mon, 29 Sep 2014 12:49:59 +0100 > > > > so int is the

RE: Decimal to Hex conversion.

2014-09-29 Thread Frédéric THOMAS
he.org > Subject: RE: Decimal to Hex conversion. > Date: Mon, 29 Sep 2014 12:49:59 +0100 > > so int is the same! > if uint is just half of int... > lets say you should first read the different types but for your try use number > > > From: sathikeshj...@gmail.com > >

RE: Decimal to Hex conversion.

2014-09-29 Thread Miguel Ferreira
so int is the same! if uint is just half of int... lets say you should first read the different types but for your try use number > From: sathikeshj...@gmail.com > Date: Mon, 29 Sep 2014 17:16:51 +0530 > Subject: Re: Decimal to Hex conversion. > To: users@flex.apache.org > >

Re: Decimal to Hex conversion.

2014-09-29 Thread Saju Thankathurai
Hi, I tried using int, it didnt help. Below is the demo code, http://ns.adobe.com/mxml/2009"; xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" initialize="windowedapplication1_initializeHandler(event)" > -- Regards

Re: Decimal to Hex conversion.

2014-09-29 Thread Evyatar Ben Halevi-Arbib
You convert initially using uint, so decimals are omitted. Regards, Evyatar On Mon, Sep 29, 2014 at 2:22 PM, Saju Thankathurai wrote: > Hi, > > How can we convert a decimal value to Hex value? > > I need to convert *1345.4567 *value to HEX value. I used the below code to > convert decimal value

Decimal to Hex conversion.

2014-09-29 Thread Saju Thankathurai
Hi, How can we convert a decimal value to Hex value? I need to convert *1345.4567 *value to HEX value. I used the below code to convert decimal values to Hex, hexVal.text = uint(scaledVal.text).toString(16).toUpperCase(); Below code to convert from Hex to decimal. var texts:String = "0x"+hexVa