Share via


INumberRounder.RoundSingle(Single) Method

Definition

Rounds a Single number.

public:
 float RoundSingle(float value);
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.

Remarks

Note

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

Applies to