Changes

Jump to navigation Jump to search
no edit summary
Line 12: Line 12:     
DEC2BIN(number, padding)
 
DEC2BIN(number, padding)
 +
 +
*The 'number' should be in the range -512 to 511.
    
*DEC2BIN returns the NAN(error) value, when the 'number' is negative or nonnumeric.
 
*DEC2BIN returns the NAN(error) value, when the 'number' is negative or nonnumeric.
  −
*The 'number' should be in the range -512 to 511.
      
*'padding' argument is used to return the output with leading zeros. If 'padding' argument is not used, 'Calci' uses the minimum number of characters required to display the binary output.  
 
*'padding' argument is used to return the output with leading zeros. If 'padding' argument is not used, 'Calci' uses the minimum number of characters required to display the binary output.  
Line 23: Line 23:  
*If 'padding' contains decimal value, Calci truncates the decimal point and uses the integer value as input.
 
*If 'padding' contains decimal value, Calci truncates the decimal point and uses the integer value as input.
   −
Lets see an example,
+
For example,
 +
 
 +
DEC2BIN(10, 4) ''returns 1010''
   −
DEC2BIN(10, 5) is 1010
+
DEC2BIN(100) ''returns 0001100100''
   −
DEC2BIN(100) is 100100
+
DEC2BIN(30,5.5) ''returns 011110''
    
== Examples ==
 
== Examples ==
writer
2,661

edits

Navigation menu