LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  hex to decimal

    Employee
    Posted 10-27-2014 09:41

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: techm_aritra

    How to convert hexadecimal to decimal using LAE 4.5.3

    Please Give Example


  • 2.  RE: hex to decimal

    Employee
    Posted 10-27-2014 10:10

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    There's not a simple way to do it.. the example below works, but is rather slow.


    h=long(0)
    i=0
    t= 'MyHexString'.toUpper()
    while i < strlen(t) {
    c=substr(t,i,1)
    q="0123456789ABCDEF".strFind(c)
    h=h*16 + q
    i=i+1
    }
    emit h as MyHexAsDecimal


  • 3.  RE: hex to decimal

    Employee
    Posted 10-28-2014 05:17

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: techm_aritra

    thanks..
    It works like charm...