asp.net.ph

Convert.ToDecimal Method ( Single )

System Namespace   Convert Class


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

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

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

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

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

Parameters

value
A single-precision floating point number.

Return Value

A Decimal number equivalent of value. The Decimal contains 7 significant digits and 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.ToDecimal Overload List   Single 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