Add ceil to Math

This commit is contained in:
Jonathan Sundqvist
2018-06-25 22:41:22 +02:00
parent 2de2a815d5
commit 9b70f14a1c
2 changed files with 33 additions and 0 deletions

View File

@ -302,6 +302,12 @@ extern {
#[wasm_bindgen(static_method_of = Math)]
pub fn cbrt(x: i32) -> Number;
/// The Math.ceil() function returns the smallest integer greater than
/// or equal to a given number.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil
#[wasm_bindgen(static_method_of = Math)]
pub fn ceil(x: f32) -> Number;
}
// Number.