mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add math::@ceil() compile time ceil function. #2134
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user