add Math.trunc, Math.sign, rem Number.toInteger

1. Use Math.trunc instead non-standard Number.toInteger.
2. Beautify left-hand side assignment.