| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 386.1 | A scream in the dark | UTRTSC::BOSMAN | We're just sugar mice in the rain | Thu Apr 02 1992 07:53 | 6 | 
|  |     Hello,
    
    My customer is *really* having problems with this problem, so, could
    some out there try this specific little example to see what happens?
    
    Thanks for your co�peration, Sjaak.
 | 
| 386.2 | More info | UTRTSC::BOSMAN | We're just sugar mice in the rain | Thu Apr 02 1992 09:08 | 11 | 
|  |     I tried this example:
    
    GET #p = 1
    DECIMAL I
    COMPUTE #p = #p * 10 {20 times}
    
    and the result was what it should be: 100000000000000000000
    
    So, it looks like the problem has to do with exponentiation.
    
    Sjaak.
 | 
| 386.3 | We know of a VMS bug in CVTHL | IOSG::ECHRISTIE | Eileen Christie | Thu Apr 02 1992 09:21 | 10 | 
|  | We raised a bug against VMS recently about rounding problems in CVTHL ( convert
HFLOAT to LONG). The symptom we had was with FLOOR, viz
COMPUTE (FLOOR .69 * 10000) gives 6899.0000000000
COMPUTE uses mth$hfloor which uses CVTHL. 
It sounds like a similar problem with HFLOAT rounding error. I believe GFLOAT 
is OK
Trying your example I get 100000000000001 on V3 and VMS 5.5
 | 
| 386.4 | Looks like a *SERIOUS* problem | UTRTSC::BOSMAN | We're just sugar mice in the rain | Thu Apr 02 1992 13:28 | 15 | 
|  |     Thanks for replying.
    
    So you've got the problem on ALL-IN-1 V3.0 and VMS V5.5. This seems a
    *SERIOUS* problem to me. What is the hardware your using?
        
    Any other results: COMPUTE #p = 1 * 10 ^ 15  �  1000000000000001
                       COMPUTE #p = 1 * 10 ^ 16  �  10000000000000017
                       COMPUTE #p = 1 * 10 ^ 17  �  100000000000000139
                       COMPUTE #p = 1 * 10 ^ 18  �  1000000000000001109
                       COMPUTE #p = 1 * 10 ^ 19  �  10000000000000017736
                       COMPUTE #p = 1 * 10 ^ 20  �  100000000000000141888
    
    There must be a logical order in it.
    
    Sjaak.
 | 
| 386.5 | SPR | UTRTSC::BOSMAN | We're just sugar mice in the rain | Fri Apr 03 1992 15:31 | 8 | 
|  |     I really appreciate some comment on this one, i.e. what is the result
    on your system:
       DECIMAL I
       COMPUTE #p = 1 * 10 ^ 15
       GET #p
    I guess I have to SPR it.
    
    Sjaak.
 | 
| 386.6 |  | LARVAE::JORDAN | Chris Jordan, Digital Services - Office Consultant, London | Fri Apr 03 1992 16:06 | 7 | 
|  |     .5�       DECIMAL I
    .5�       COMPUTE #p = 1 * 10 ^ 15
    .5�       GET #p
    
    I get 1000000000000000 on a Britsh ALL-IN-1 V2.4 PBL8C3 7-JUN-1990 system.
    
    That's a 1 followed by 15 0's.
 | 
| 386.7 | 1 with 15 zeros | LEMAN::REGINA | Carrie's in the carrot land | Fri Apr 03 1992 16:22 | 3 | 
|  |     I get 1 followed by 15 zeros. V3.0 BL123A VMS 5.4-3
    
    /rhr
 | 
| 386.8 | Different CPUs ? | IOSG::SHUV::IOSG::SHOVE | REO/D-3C | Fri Apr 03 1992 16:27 | 7 | 
|  | It's just possible that this is dependant on the CPU, so it might be worth 
saying what CPU type you're (each) running on.
These things are done by hardware on some CPUs, and emulated in software on 
others. And there are some known inconsistencies.
Dave (who never really understood floating point!)
 | 
| 386.9 | It works correct for me | CESARE::EIJS | All in 1 Piece | Sat Apr 04 1992 12:44 | 21 | 
|  |     
    Hi,
    
    I think Dave has a point, as all tests as described in .-*) work on my
    system:
    
    	VAXstation 3100, 32MB
    	VAX/VMS 5.5
    	ALL-IN-1 V3.0, BL122D
    
    <DECIMAL I
    <COMPUTE #P = 10 * 10 ^ 20 \GET #P
    
    	Result: 1000000000000000000000
    
    Everything works untill '^ 23' when '***********************' appear as
    the result, but that's seems OK.
    
    Ciao,
    
    	Simon
 | 
| 386.10 | Sigh | UTRTSC::BOSMAN | We're just sugar mice in the rain | Mon Apr 06 1992 07:27 | 6 | 
|  |     Yeah, already thought of the possibilty that hardware (CPU) could be
    involved on this one. But my MicroVAX 3100 gives the wrong result!
    
    It must be a (trivial) combination of CPU type and VMS version.
    
    Sjaak.
 | 
| 386.11 | It seems to be hardware variable | TIMMII::RDAVIES | An expert Amateur | Tue Apr 14 1992 10:58 | 24 | 
|  |     	My observations:
    hardware:	6340
    VMS:	VAX/VMS V5.5  
    ALL-IN-1:	ALL-IN-1 IOS Server for VMS V3.0 PBL123A  (US) ENGLISH
    							21-MAR-1992
    result:	1000000000000002
    
    	Same code, *same image*, different node:
    
    hardware:	8600
    VMS:	VAX/VMS V5.5  
    ALL-IN-1:	ALL-IN-1 IOS Server for VMS V3.0 PBL123A  (US) ENGLISH
    							21-MAR-1992
    result:	1000000000000001
    
    	Different node AND code image
    
    hardware:	MvaxII
    VMS:	VAX/VMS V5.4  
    ALL-IN-1:	ALL-IN-1 IOS Server for VMS V3.0 BL123   BRITISH
    							16-MAR-1992
    result:	1000000000000001
    
    Richard
 |