Power 2 to the value of val ( 2^val) and you will get the same value as your lookup table.
Since 2^0 = 1 you will use an if then to turn it into zero.
Cheers
Al.
Power 2 to the value of val ( 2^val) and you will get the same value as your lookup table.
Since 2^0 = 1 you will use an if then to turn it into zero.
Cheers
Al.
Last edited by aratti; - 5th August 2014 at 01:47.
All progress began with an idea
Bookmarks