phizz
aka: Philly Cheese
Just a bit of a mind blank at the moment, firstly I'm programming in Java, but any algorithm solution will help.
Basically I want to store the decimal value from a real varible, eg:
526.78
I want to be able to store 0.78 sepperatly.
so far its programmed like:
double num; (num is then inputted by user)
double decimal; (place to store decimal value of num)
any help will be very much appreciated - phizz
Basically I want to store the decimal value from a real varible, eg:
526.78
I want to be able to store 0.78 sepperatly.
so far its programmed like:
double num; (num is then inputted by user)
double decimal; (place to store decimal value of num)
any help will be very much appreciated - phizz
Last edited: