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 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: [email protected]
> Date: Tue, 30 Sep 2014 09:17:18 -0700
> To: [email protected]
> 
> 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" <[email protected]> 
> > 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 values to Hex,
> > 
> > hexVal.text = uint(scaledVal.text).toString(16).toUpperCase();
> > 
> > 
> > Below code to convert from Hex to decimal.
> > var texts:String = "0x"+hexVal.text;
> > scaledVal.text = uint(texts).toString(10);
> > 
> > 
> > The value 1345 is converted to HEX without any issues. But after the
> > decimal part, it is not converting.
> > 
> > Could some one give inputs on this conversion.
> > 
> > 
> > --
> > Regards
> > Saju Thankathurai,
                                          

Reply via email to