ceil(x: number,n?: number,): number
Round toward positive infinity.
Rounds the input value(s) toward positive infinity, optionally to a specified number of decimal places.
Round a number (Math.PI) to 12 decimal places
Round a number (Math.PI) to 12 decimal places
import { assertEquals } from "jsr:@std/assert"; assertEquals(ceil(Math.PI, 12), 3.141592653590);
Round a number (3.78) toward positive infinity
Round a number (3.78) toward positive infinity
import { assertEquals } from "jsr:@std/assert"; assertEquals(ceil(3.78), 4);
ceil(x: array,n?: number,): array
Round toward positive infinity.
Rounds the input value(s) toward positive infinity, optionally to a specified number of decimal places.
Round a number (Math.PI) to 12 decimal places
Round a number (Math.PI) to 12 decimal places
import { assertEquals } from "jsr:@std/assert"; assertEquals(ceil(Math.PI, 12), 3.141592653590);
Round a number (3.78) toward positive infinity
Round a number (3.78) toward positive infinity
import { assertEquals } from "jsr:@std/assert"; assertEquals(ceil(3.78), 4);
x: array
Value(s) to be rounded
The rounded value(s)
ceil(x: matrix,n?: number,): matrix
Round toward positive infinity.
Rounds the input value(s) toward positive infinity, optionally to a specified number of decimal places.
Round a number (Math.PI) to 12 decimal places
Round a number (Math.PI) to 12 decimal places
import { assertEquals } from "jsr:@std/assert"; assertEquals(ceil(Math.PI, 12), 3.141592653590);
Round a number (3.78) toward positive infinity
Round a number (3.78) toward positive infinity
import { assertEquals } from "jsr:@std/assert"; assertEquals(ceil(3.78), 4);
x: matrix
Value(s) to be rounded
The rounded value(s)