Skip to content

improper integer arithmetic #110

@TheFausap

Description

@TheFausap

Hello,
I installed tk5 with the latest BREXX370 version.
I suppose also this behaviour could be relate to the other open issue TRUNCATE ROUDING.
The source is

SAY TIME(); SAY DATE()                        
NUMERIC DIGITS 60                             
SAY 'THERE ARE' DIGITS() 'DIGITS OF PRECISION'
RSLT = 6**6**6                                
SAY '6^6^6 =' RSLT                            
EXIT                                          
19:18:48                             
28/01/2024                           
THERE ARE 60 DIGITS OF PRECISION     
6^6^6 = 10314424798490544000000000000

I tried also with an online interpreter (https://www.tutorialspoint.com/execute_rexx_online.php), and I have the correct result

18:17:11
28 Jan 2024
THERE ARE 60 DIGITS OF PRECISION
6^6^6 = 10314424798490535546171949056

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions