INumberRounder.RoundSingle(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.