python saving the excess of a float to int conversion
<pre><code>x=10.5
    if x==10.5:
        x=int(x)+1
        y= .5
</code></pre>

<p>ok i have x=10.5 i want to round up to 11 but say the .5 to use later is there any way to do this when i dont know what x will be all the time?</p>

<p>i have to real place to start or even if its possible i do know how to change it to an int but i want to store what ever it took off and store to y right now id have to write 100 of if statments to figure what do say and that just doent strike me as the best way to do it</p>
