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
Analysis IsEqual IsLinearFunction IsPositiveFunction IsZeroFunction ToAndOr MinValue binaryioset() ToNotFunction ToTruthTable Diagram LogicScript To2LayerOrAnd SOP To2LayerAndXor ShortestInputsForDistinguishTwoStates InputVariables OutputAndStateBasedly ToFeedbackSystem Implementation FullTable ShannonTree ROBDD Full SimpleInner string CreateFromLogicFunctions Substitute var() Zero