mirror of
https://github.com/robertkrimen/otto
synced 2025-10-26 20:28:49 +08:00
Streamline Math.ceil
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user