round

round

round

Details

Kode wheel segment Math/Functions
Style Math
Modifiers None
Primarily WHEN/DO DO
Pre-made brains that use it Unknown

Math> Functions > round

Description

This tile is a Math tile. It rounds a number up or down to it nearest whole number.

eg: 5.678 = 6

eg: 5.475 = 5

 

Example Code

 

WHEN [once] DO [numvar:number1][=][6.79]

…WHEN DO [numvar:my number][=][floor][numvar:number1]

This returns my number as 7.

Modifiers

None

Other Uses

None

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: