millermedeiros / amd-utils

modular JavaScript utilities written in the AMD format
http://millermedeiros.github.com/amd-utils
142 stars 11 forks source link

add math/round - similar to math/snap but round value instead of floor #103

Closed millermedeiros closed 11 years ago

millermedeiros commented 11 years ago

@edankwan just said that math/snap should work like Math.round, I think this kind of behavior is indeed useful but unfortunately I think a lot of people might be using math/snap already so we shouldn't change the behavior. I'm thinking in adding a new method math/round that works similar to snap and maybe even rename snap to floor.