flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evyatar Ben Halevi-Arbib <evyata...@gmail.com>
Subject Re: Decimal to Hex conversion.
Date Mon, 29 Sep 2014 11:36:20 GMT
You convert initially using uint, so decimals are omitted.

Regards,
Evyatar

On Mon, Sep 29, 2014 at 2:22 PM, Saju Thankathurai <sathikeshjith@gmail.com>
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,
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message