Wednesday 15 June 2011

c++ - How to determine when a float passes an integer boundary -


Then I have a float value that grows with some partial value. Whenever any integer limit is exceeded - I need a fast and easy way to set 1.0, 2.0, 3.0 etc.

I swear that a good gem was kicking the year ago, but I did not do it

<> (floor)! = Floor (new_value)) <... code

No comments:

Post a Comment