Not signed in (Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormatanhavi
    • CommentTimeJul 28th 2010
     
    I have this conversion that i need to do.
    I have tried it in for(;;) loop and found that its take too much time, i will appreciate your help...

    i have two arrays of ILN:
    the 1st repersent the low byte of 11bit signed num,
    the secound is the other 3bits (in position 0-2), the other are not cared (N/C)

    i need the result in double

    for example:
    2nd byte: 1st byte: Result:
    0x00 0x10 16.0
    0x10 0x10 16.0 //The bit in the 2nd is in N/C position
    0x03 0x10 784.0
    0x04 0x10 -1008.0 //signed num
    • CommentAuthormatanhavi
    • CommentTimeJul 30th 2010
     
    i have solved it by moving the data to regular double array, doing the math, and returning it back....