implemented ceil, floor, and round

This commit is contained in:
Kyler Olsen 2025-11-29 14:19:34 -07:00
parent 6a82cde8f2
commit f91c63b37f
1 changed files with 6 additions and 6 deletions

View File

@ -1014,8 +1014,8 @@ Boolean builtin_bitxor(InterpreterState *interpreter_state) {
}
Boolean builtin_ceil(InterpreterState *interpreter_state) {
(void)interpreter_state;
return FALSE;
NUMERIC_TYPE;
FLOAT_FUNCTION(ceil);
}
Boolean builtin_cos(InterpreterState *interpreter_state) {
@ -1056,8 +1056,8 @@ Boolean builtin_eval(InterpreterState *interpreter_state) {
}
Boolean builtin_floor(InterpreterState *interpreter_state) {
(void)interpreter_state;
return FALSE;
NUMERIC_TYPE;
FLOAT_FUNCTION(floor);
}
Boolean builtin_for(InterpreterState *interpreter_state) {
@ -1140,8 +1140,8 @@ Boolean builtin_rot(InterpreterState *interpreter_state) {
}
Boolean builtin_round(InterpreterState *interpreter_state) {
(void)interpreter_state;
return FALSE;
NUMERIC_TYPE;
FLOAT_FUNCTION(round);
}
Boolean builtin_seed(InterpreterState *interpreter_state) {