Modifica

Condividi tramite


WorksheetFunction.Bin2Dec(Object) Method

Definition

Converts a binary number to decimal.

public:
 System::String ^ Bin2Dec(System::Object ^ Arg1);
public string Bin2Dec (object Arg1);
Public Function Bin2Dec (Arg1 As Object) As String

Parameters

Arg1
Object

The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

Returns

Remarks

If number is not a valid binary number, or if number contains more than 10 characters (10 bits), Bin2Dec generates an error value.

Applies to