Class ScalarRound
Rounds a decimal number to return an integer.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Math/Scalar")]
[UnitDisplay("Round")]
public sealed class ScalarRound : Round<float, int>, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Methods
AwayFromZero(Single)
Declaration
protected override int AwayFromZero(float input)
Parameters
Type | Name | Description |
---|---|---|
Single | input |
Returns
Type | Description |
---|---|
Int32 |
Overrides
Ludiq.Bolt.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
Ludiq.Bolt.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
Ludiq.Bolt.Round<System.Single, System.Int32>.Floor(System.Single)