Changes

Jump to navigation Jump to search
247 bytes added ,  03:56, 27 November 2013
no edit summary
Line 9: Line 9:  
INT(number)
 
INT(number)
   −
INT(3.6) is 3
+
INT() function rounds a number to the nearest integer towards zero.
 +
 
 +
For Example,
 +
 
 +
INT(3.6) ''returns 3'' as output.
 +
INT(-2.4) ''returns -3'' as output.
 +
 
 +
INT() can be used with multiple inputs as -
 +
INT(4.5,6.7,3.345,2) that ''displays 4,6,3,2 as a result''.
 +
 
 +
*If the input is non-numeric, Calci displays a NaN error message.
    
*TRUNC() and INT() functions are somewhat similar. TRUNC() removes the fractional part of the number, where as INT() rounds the number down to nearest integer.  
 
*TRUNC() and INT() functions are somewhat similar. TRUNC() removes the fractional part of the number, where as INT() rounds the number down to nearest integer.  
Line 17: Line 27:  
   
 
   
 
TRUNC(-45.1) ''returns -46''
 
TRUNC(-45.1) ''returns -46''
  −
*If the input is non-numeric, Calci displays an error message.
      
== Examples ==
 
== Examples ==
writer
2,661

edits

Navigation menu