Edited function and sslc docs

This commit is contained in:
NovaRain
2023-07-17 20:53:50 +08:00
parent 6eeb674641
commit 6d66bfffb0
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -649,7 +649,9 @@
If both arguments are integers, the result will be an integer.
- name: floor2
detail: int floor2(int/float value)
doc: Works just like vanilla floor function, but returns correct integers for negative values (vanilla floor function works exactly the same as `ceil` for negative values, much like `trunc` in C/C++).
doc: |
Works just like vanilla floor function, but returns correct integers for negative floats.
- __NOTE:__ vanilla `floor` function works exactly the same as `ceil` for negative floats (i.e. basically `trunc` in C/C++).
macro: sfall.h
- name: div
detail: div(x, y)