Convert a x.0 float to int function : <p>Ok, kinda hard question to ask in a title, but here is what i want to do.</p>

<p>I want to basically detect if my float has a 0 after the . so that i can skip printing out the - for example - 1.0 and just print 1. Anyone have an idea as to how to do this ?
I was thinking of some sort of modulus operator but cant really figure out a good way for that.
Any help would be greatly appreciated.</p>
