Closed Gidsss closed 4 months ago
Solution is to implement a builtin fn that automatically floors/ceils int/float values.
something like to_float()
or to_int()
new solution is to have builtin types so capping values also happens during operations (+, - *, /, %), not just assignments and declarations
Integer literals
-9999999999 (floor value)
9999999999 (ceiling value)
Float literals
Note: Values greater than the given ceiling value will be adjusted to the ceiling value while values less than the floor value will be adjusted to the floor value.