Skip to content
mouse114514 edited this page Sep 12, 2026 · 1 revision

Math Function

Math Function

Overview

Applies a math function to a value: round, absolute, square root, or negate.

Slots

Slot Type Description
NUM Number slot the input value

Dropdown Options

Field Option Value Meaning
FUNC Round ROUND round to nearest integer
FUNC Absolute ABS absolute value
FUNC Square root SQRT square root
FUNC Negate NEG change sign

Connections

Connection Type Description
Output Number the function result

Generated Code

  • ROUND → (int)System.Math.Round(NUM)
  • ABS → System.Math.Abs(NUM)
  • SQRT → System.Math.Sqrt(NUM)
  • NEG → (-NUM)

Block ID: cu_math_func


中文 | Value Reporter Blocks | Block Reference

Clone this wiki locally