/*****************************************************************/
/**                                                             **/
/**             (C) Copyright 1992 the Regents of the           **/
/**        University of California.  All Rights Reserved.      **/
/**                                                             **/
/**        This work was produced under the sponsorship of      **/
/**         the U.S. Department of Energy.  The Government      **/
/**                retains certain rights therein.              **/
/**                                                             **/
/**                         Written by                          **/
/**         Distributed Programming Environments Project        **/
/**           Computer Software and Networking Division,        **/
/**                   Livermore Computer Center,                **/
/**            Lawrence Livermore National Laboratory           **/
/**                                                             **/
/*****************************************************************/
 
Interface empty; 

Invoke x 1 Integer(4); 

End; 
  
 
main(argc,argv) 
   int argc; 
   char *argv[]; 
{ 
   Real(20,5) f,dummyf; 
   Real(48,10) d; 
   Real(120,24) r1; 
  
   int i; 
 
   Roseti(empty); 

   Real_const(f,34.567E7,20,5); 
   if (f != (dummyf=34.567E7)) 
      printf("###f error\n"); 

   Real_const(d,85.4E-1,50,10); 
   if (d != 85.4E-1) 
      printf("###d error\n"); 

   Real_const(r1,15.6634E5,120,24); 
   Roprint("Real(120,24)",&r1); printf("\n"); 

   Real_const(r1,-12.34,120,24); 
   Roprint("Real(120,24)",&r1); printf("\n"); 

   Real_const(r1,5E1,120,24); 
   Roprint("Real(120,24)",&r1); printf("\n"); 

   Real_const(r1,28515625E-8,120,24); 
   Roprint("Real(120,24)",&r1); printf("\n"); 

   Real_const(r1,.125,120,24); 
   Roprint("Real(120,24)",&r1); printf("\n"); 

   Real_const(r1,2,120,24); 
   Roprint("Real(120,24)",&r1); printf("\n"); 

   Real_const(r1,64,120,24); 
   Roprint("Real(120,24)",&r1); printf("\n"); 
    
   printf("test completed\n");
   return(0); 
} 
