Test if value is an integer in Sass

sass

Solution

Chris Eppstein helped me work it out. Pretty easy in hindsight:

round($n) == $n

Problem

How can I test whether a value is an integer in Sass? I saw some documentation stating there was an `int?` function but I don't think I'm using it correctly. That, or I have misunderstood the documentation. I am currently doing this, but am getting an error: ``` int?(16) ```

Original source