simplify Number.toInteger()
Merge pull request #106 from Daniel-Hug/patch-6

simplify Number.toInteger()