Changes

Jump to navigation Jump to search
no edit summary
Line 7: Line 7:     
BIN2DEC(number)
 
BIN2DEC(number)
 +
    
For example, BIN2DEC(101) ''returns 5'' as a result.
 
For example, BIN2DEC(101) ''returns 5'' as a result.
Line 18: Line 19:  
*The conversion can be obtained for a binary number upto 10 bits. The most significant bit represents the 'sign' of the number (0=positive, 1=negative). Negative numbers are represented using 2's complement notation.
 
*The conversion can be obtained for a binary number upto 10 bits. The most significant bit represents the 'sign' of the number (0=positive, 1=negative). Negative numbers are represented using 2's complement notation.
   −
*Positive numbers can be from 0 (000000000) to 511 (111111111) or negative numbers -1 (1000000001) to -512 (1111111111).
+
*Positive numbers can be from 0 (000000000) to 511 (0111111111) or negative numbers -1 (1111111111) to -512 (1000000000).
    
*A number preceding with '0' (e.g 01111111111) should be written in text format ("01111111111") to avoid confusion with octal numbers.   
 
*A number preceding with '0' (e.g 01111111111) should be written in text format ("01111111111") to avoid confusion with octal numbers.   
Line 49: Line 50:     
|- class="even"
 
|- class="even"
| class="ssh1_f" |  
+
| class="ssh1_f" | 1111000000
| class="sshl_f" |
+
| class="sshl_f" | -64
       
|}
 
|}
writer
2,661

edits

Navigation menu