asp.net.ph

Convert.ToSingle Method ( Decimal )

System Namespace   Convert Class


Converts the value of a given Decimal to an equivalent single-precision floating point number.

[ VB ]
Overloads Public Shared Function ToSingle ( _
   ByVal value As Decimal _
) As Decimal

[ C# ]
public static float ToSingle ( 
   decimal value
);

[ C++ ]
public: static float ToSingle ( 
   Decimal value
);

[ JScript ]
public static function ToSingle (
   value : Decimal
) : float;

Parameters

value
A Decimal number.

Return Value

A single-precision floating point number equivalent of 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.

See Also

Convert Members   Convert.ToSingle Overload List   Decimal Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph