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
Advanced IsCovering IsNegativeUnateFunctionTo IsSymmetricFunction IsThresholdFunction IsUnateFunction AndXor Binary FromBinary List binaryioset bool AddXorTerm ToPOS Diagram DigitalSystem Dimacs Nand Not One ToFullAnd TransitionSeries Simplification ShannonTree Fast MultiCover StateDeviceName TimingChart GetSubTable Zero
The website is simply translated by using the Google Translate. Please inform us if you find the wrong/funny/weird translation.