IncrementNumberRounder.RoundSingle(Single) Method

Definition

Rounds a Single number to the specified increment.

public:
 virtual float RoundSingle(float value) = RoundSingle;
float RoundSingle(float const& value);
public float RoundSingle(float value);
function roundSingle(value)
Public Function RoundSingle (value As Single) As Single

Parameters

value
Single

float

The Single value to be rounded.

Returns

Single

float

The rounded number. This result is a single precision floating point number, which is not necessarily an integer.

Implements

M:Windows.Globalization.NumberFormatting.INumberRounder.RoundSingle(System.Single) M:Windows.Globalization.NumberFormatting.INumberRounder.RoundSingle(float)

Remarks

The rounding strategy is based on the values of Increment and RoundingAlgorithm.

Note

This method is precise only within the limits of the Single data type, or approximately 7 digits.

Applies to