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 IsEqual IsInverse IsLinearFunction ToAndOr Binary BinaryNumberToString GrayCode binary binaryioset() AddXorTerm DigitalSystem Imply minterm() Nand Nor One To2LayerOrAnd TransitionSeries InputVariables Forwardly ToDigitalSystem HuffmanMealy ShannonTree Canonical Shannon GetDontCareLogicFunction ShannonExpansion Zero