Converts the value of the specified double-precision floating-point number to an equivalent single-precision floating-point number.
A single-precision floating-point number that is equivalent to value.
value is rounded using rounding to nearest. For example, when rounded to two decimals, the value 2.345 becomes 2.34 and the value 2.355 becomes 2.36.
Type Reason OverflowException value is greater than float.MaxValue or less than float.MinValue.