using UnityEngine; namespace Unity.VisualScripting { /// /// Rounds a decimal number to return an integer. /// [UnitCategory("Math/Scalar")] [UnitTitle("Round")] public sealed class ScalarRound : Round { protected override int Floor(float input) { return Mathf.FloorToInt(input); } protected override int AwayFromZero(float input) { return Mathf.RoundToInt(input); } protected override int Ceiling(float input) { return Mathf.CeilToInt(input); } } }