Class ScalarRound
Rounds a decimal number to return an integer.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Math/Scalar")]
[UnitTitle("Round")]
public sealed class ScalarRound : Round<float, int>, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Methods
AwayFromZero(Single)
Declaration
protected override int AwayFromZero(float input)
Parameters
Type | Name | Description |
---|---|---|
Single | input |
Returns
Type | Description |
---|---|
Int32 |
Overrides
Unity.VisualScripting.Round<System.Single, System.Int32>.AwayFromZero(System.Single)
Ceiling(Single)
Declaration
protected override int Ceiling(float input)
Parameters
Type | Name | Description |
---|---|---|
Single | input |
Returns
Type | Description |
---|---|
Int32 |
Overrides
Unity.VisualScripting.Round<System.Single, System.Int32>.Ceiling(System.Single)
Floor(Single)
Declaration
protected override int Floor(float input)
Parameters
Type | Name | Description |
---|---|---|
Single | input |
Returns
Type | Description |
---|---|
Int32 |
Overrides
Unity.VisualScripting.Round<System.Single, System.Int32>.Floor(System.Single)