CEIL Function
            
         
         
         Returns the smallest integer that is greater than
            or equal to the argument, fuzzed to avoid unexpected floating-point
            results.
            
         
         
         
         
         
         
         
         
         
         
         
            
            Syntax 
               
            
            
            
            
            
               
               
                  
                  Required Argument
                     
                  
                  
                  
                     
                     argument
                     
                     
                        
                        specifies a numeric
                           constant, variable, or expression. 
                           
                        
                        
                      
                     
                   
                  
                
               
             
            
          
         
         
            
            Details 
               
            
            
            If the argument is within
                  1E-12 of an integer, the function returns that integer.
                  
               
 
               
             
            
          
         
         Comparisons 
            
            Unlike the CEILZ function,
               the CEIL function fuzzes the result. If the argument is within 1E-12
               of an integer, the CEIL function fuzzes the result to be equal to
               that integer. The CEILZ function does not fuzz the result. Therefore,
               with the CEILZ function you might get unexpected results.
               
            
 
            
          
         
         Example 
            
            The following SAS statements
                  produce these results.
                  
               
 
               
               
                     
                     
                        
                        | 
                           
                           
                           
                         | 
                        
                        
                           
                           
                           
                         | 
                        
                     
                     
                     
                        
                        
                           
                           var1=2.1;
a=ceil(var1);
put a;  
                           
                         | 
                        
                        
                           
                           
                           
                         | 
                        
                     
                     
                     
                        
                        | 
                           
                           
                           
                         | 
                        
                        
                           
                           
                           
                         | 
                        
                     
                     
                     
                        
                        | 
                           
                           
                           
                         | 
                        
                        
                           
                           
                           
                         | 
                        
                     
                     
                     
                        
                        
                           
                           d=ceil(-1+1.e-11);
put d;  
                           
                         | 
                        
                        
                           
                           
                           
                         | 
                        
                     
                     
                     
                        
                        | 
                           
                           
                           
                         | 
                        
                        
                           
                           
                           
                         | 
                        
                     
                     
                     
                        
                        | 
                           
                           
                           
                         | 
                        
                        
                           
                           
                           
                         | 
                        
                     
                     
                     
                        
                        | 
                           
                           
                           
                         | 
                        
                        
                           
                           
                           
                         | 
                        
                     
                     
                     
                        
                        | 
                           
                           
                           
                         | 
                        
                        
                           
                           
                           
                         |