Religion

Meta

Posts Tagged ‘nearest int’

As I was developing a game I needed something to round an integer to the nearest 5. The following function allows you to round a given integer n to the nearest integer f. It’s a very simple Actionscript function, but I it might come in handy.