1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Streamline Math.ceil

This commit is contained in:
Robert Krimen
2013-02-22 19:39:31 -08:00
parent 47659bc0b3
commit 4dc7948e1c
2 changed files with 7 additions and 3 deletions

View File

@@ -55,9 +55,6 @@ func builtinMath_min(call FunctionCall) Value {
func builtinMath_ceil(call FunctionCall) Value {
number := toFloat(call.Argument(0))
if math.IsNaN(number) {
return NaNValue()
}
return toValue(math.Ceil(number))
}