This is my first post on Stack Overflow ever. If I do it wrong, please correct me:
Using C#, I'd like to convert a double to an int array of variable length equal to the total number of digits in the double.
for example, if I had the number 35.777778, I would want to convert it an int array where
array[0] = 3
array[1] = 5
array[2] = 7
etc.
I plan to iterate through the array and compare array[i] to array[i + 1].
The double will be the quotient of two variable numbers. So it may have very few digtis or a lot of digits.
So far I have tried to convert it to a string and then to an array of ints. But it crashes at the decimal point.
Please help me...