Skip to content

ceil

Return number rounded up to precision.

Usage

ts
import { ceil } from 'rattail'

ceil(1.004) // return 2
ceil(1.004, 2) // return 1.01

Arguments

ArgTypeDefaults
valnumber
precisionnumber0

Return

Type
number