Functions Index :: C :: CeilBs
Module:
Definition:
CeilBs(float x, int "base")
Description:
An extension to the Ceil standard Avisynth function for arbitrary (integer) base base.[1] It returns the base-base ceiling of x (ie the smallest integral multiple of base that is greater or equal to x).
Examples:
f1 = CeilBs(3.3, 2) # f1 == 4.0
f2 = CeilBs(7.3, 3) # f2 == 9.0
f3 = CeilBs(7.3, 1) # f3 == 8.0
[1]: Like the Ceil standard Avisynth function, CeilBs is non-symmetrical around the axis origin and periodic.
Consequently, the following equalities hold:
Ceil(x) = k, x in (k-1..k] for every k in Z
CeilBs(x, b) = kb, x in ((k-1)*b..k*b] for every k in Z