SignificantDigitsNumberRounder.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 to the specified number of significant digits.
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
float
The rounded number. This result is a single precision floating point number, which is not necessarily an integer.
Implements
Remarks
The rounding strategy is based on the values of SignificantDigits and RoundingAlgorithm.
Note
This method is precise only within the limits of the Single data type, or approximately 7 digits.