("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
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
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
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
Oh didn't notice the negative sign.
Yes that changes it to the other way.
-214,748,364 = F333 3334
-Mark
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
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
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
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
> > >
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
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
>>
>>
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
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
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
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
&
é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
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..
-> 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
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
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:
>
>
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
> > >
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
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
> >
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
>
>
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
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
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
27 matches
Mail list logo