Can anyone tell me how to convert my waveform or signal which i have in floating point numbers into integer sequence?I need to encode my signal residue using arithnmetic coding for which i need the input as integer sequence. Kindly help
If you did not need to preserve the value of your floating point numbers, but just model them (represent them unequivocally) you could simply take the significand and the exponent of the floating point, find the prime numbers whose order corresponds to their values, and model them through the product of those primes. Then you would have an integer for each floating point.
But you probably need to preserve the exact value of the floating point numbers. In that case, if a sequence of integer ratios is acceptable I would suggest you convert the floating points to their rational number equivalents: p/q, with p and q integers. Take a look at the following link: