Binary.TwoComplement.ToBinary
Back to table
/*
Binary-Number
Binary.TwoComplement.ToBinary
[binary result]=Binary.TwoComplement.ToBinary(int bitLength, int number);
Get the TwoComplement binary expression of a number.
*/
//-------------------------------------------------------------------
// examples
[v]=Binary.TwoComplement.List(4,-2,3);
[v]=Binary.TwoComplement.ToBinary(4,5);
[v]=Binary.TwoComplement.FromBinary(4'b0101);
[v]=Binary.TwoComplement.MaxValue(4);
[v]=Binary.TwoComplement.MinValue(4);
//-------------------------------------------------------------------
// result
IsBiUnateFunction IsBlankFunction IsParityFunction IsSymmetricFunctionTo Binary ToBinary GrayCode NineComplement binaryioset ToTruthTable ToVariableInvertedFunction ToXORP Imply Get logicvardef Nand MantissaToPositiveNumber RadixFromIndex Or POS Print Sequential Assign InputVariables Backwardly CreateCompactTableWithFullSimplification Full string() ComputeDONTCARE Zero