Floor: Difference between revisions

34 bytes added ,  1 year ago
"Better category ordering, add redirects to categories, fix pseudo-adverb categories"
mNo edit summary
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
(6 intermediate revisions by 3 users not shown)
Line 1:
{{primitive|_x}}
 
The '''floor''' function is used to round numbers down in K.
 
Flooring is a no-op on integers and characters, meaning that they remain the same.
 
The floor primitive is [[Atomicity|right atomic]].
 
A ceiling function (round up) can be made with floor using a [[tacit]] definition: <code>(1+-_)-</code>.
 
<pre>
Line 15 ⟶ 16:
-4 4 80 0N
</pre>
 
[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]
720

edits