Im working on a program, where the user inputs a double, and I split the double up and put it into an array(Then I do some other stuff). The problem is, im not sure how to split up the double by digit, and put it into an int array. Please help?
Heres what im looking for:
double x = 999999.99 //thats the max size of the double
//I dont know how to code this part
int[] splitD = {9,9,9,9,9,9}; //the number
int[] splitDec = {9,9}; //the decimal
;in x declaration