moon phasing

Sorted that one.

this line

float fractionalPart = wholeNumber - fractionalPart;

should have been

float fractionalPart = wholeNumber - integerPart;

Thanks for the help so far, this should keep me busy for a while but i think i have the makings of a code.

Damn keyboard didn't type what I was muttering to myself as I typed...

Thanks for all your help.

i should be able to tweak the code now to do what i want and the good thing is due to using a 0-99 int for the value i can assign differnt values to for any of the 0-99 ints so i should be able to get a really good simulation instead of just a liniar increase/decrease.

Again Thanks