Round: Difference between revisions

From Fancade Wiki
m (Add infobox and clarification)
m (Link related articles)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
|image=Round.png
|image=Round.png
|type=s
|type=s
|folder=Game
|folder=Math
|input1={{Port|n}}
|input1={{Port|n}}
|output2={{Port|n|Rounded}}
|output2={{Port|n|Rounded}}
Line 10: Line 10:
When the decimal point is exactly .5, it is rounded up.
When the decimal point is exactly .5, it is rounded up.


[[File:Round_example.png]]
{{Image|Round_example.jpg}}
 
== Related ==
 
* [[Floor]]
* [[Ceiling]]


[[Category:Blocks]]
[[Category:Blocks]]

Latest revision as of 13:38, 29 July 2025

Round
Round.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Number
Rounded

Rounds a number to the closest integer. When the decimal point is exactly .5, it is rounded up.

Round_example.jpg

Related