i want use xor double numbers in matlab,but bitxor working int numbers. there function convert double int in matlab?
the functions looking might be: int8(number), int16(number), uint32(number) of them convert double integer, must pick best 1 result want achieve. remember cannot cast double integer without rounding number.
if understood correcly, create function remove "comma" double number multiplying starting value 2^n , casting integer using of functions mentioned earlier, performing whatever want , returning comma original position dividing number 2^n
multiplying starting value 2^n hack decrease rounding error. perfect value n number of digits after comma if number relatively small.
please specify, why trying this? doesn't seem optimal solution.
Comments
Post a Comment