Checking for decimal points?
To check if a number has decimal points you can do the following:
if (floor(value) != value){ // it has decimal points }
To check if a number has decimal points you can do the following:
if (floor(value) != value){ // it has decimal points }
My name is Patrick Chamelo, I am half Greek, half Filipino, PAOK fan and twitter addict. Other than that, I am developing applications for the Mac and the iPhone on my free time. more details visit nscoding.co.uk
In this blog you will find my Cocoa notes that I am writing every time I come across with something new and interesting to me.
Thanks for visiting, - Patrick.