Edit

Share via


Mcp33xx.SignExtend(Int32, Int32) Method

Definition

Convert a signed value with a sign bit at a particular location to an int.

public static int SignExtend (int signedValue, int signingBit);
static member SignExtend : int * int -> int
Public Shared Function SignExtend (signedValue As Integer, signingBit As Integer) As Integer

Parameters

signedValue
Int32

Signed value with a sign bit at a particular location

signingBit
Int32

Bit number that contains the sign bit

Returns

A value corresponding to the signed value sign extended into an int

Applies to