Add math::@ceil() compile time ceil function. #2134

This commit is contained in:
Christoffer Lerno
2025-05-15 12:46:46 +02:00
parent 8c741c617c
commit 6c822e5aa3
7 changed files with 36 additions and 2 deletions

View File

@@ -234,6 +234,13 @@ macro asinh(x)
*>
macro ceil(x) => $$ceil(x);
<*
Ceil for compile time evaluation.
@require @typeis($input, double) || @typeis($input, float) : "Only float and double may be used"
*>
macro @ceil($input) @const => $$ceil($input);
<*
Constrain the value to lie within the given interval.