| 
                    
 This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com  | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                 
                
    
    
                 | 
                
					
                    
                         
    4D v20.6
 
Int 
                                
                                
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Int ( number ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| number | Real | 
             
         | 
        Number whose integer portion is returned | |||||
| Function result | Real | 
             
         | 
        Integer portion of number | |||||
The following example illustrates how Int works for both positive and negative numbers. Note that the decimal portion of the number is removed:
 vlResult:=Int(123.4) ` vlResult gets 123
 vlResult:=Int(-123.4) ` vlResult gets –124
	Product:  4D
	Theme:  Math
	Number:  
        8
        
        
        
	
	Created:  < 4D v6
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v20)
	
	
	4D Language Reference ( 4D v20.1)
	
	
	
	4D Language Reference ( 4D v20.2)
	
	4D Language Reference ( 4D v20.3)
	
	4D Language Reference ( 4D v20.4)
	
	
	4D Language Reference ( 4D v20.5)
	4D Language Reference ( 4D v20.6)
	
	
	
Add a comment