Greetings Ruurd, Ruurd Idenburg wrote:
Running the attached script "rxmath.rex" will yield a weird result on my Linux (Mint 19.3, which is based on Ubuntu 18.04) when the RxCalcSqrt function is called from the RXBSF.REX for a non-perfect square (129).
Rony kindly assisted me in getting BSF4ooRexx to run on my Xubuntu 16.04 x64 system with ooRexx 4.2 The results of running your program on my system are as follows: $ rexx rxmath.rex rxCalcSqrt(129) before BSF is invoked/loaded: 11.3578167 rxCalcSqrt(121) before BSF is invoked/loaded: 11 ================================================================================ Now running RXBSF.REX that only requires BSF CLS rxCalcSqrt(129) in RXBSF.REX: 11.3578167 rxCalcSqrt(121) in RXBSF.REX: 11 my_sqrt(129) in RXBSF,REX: 11.3578167 my_sqrt(121) in RXBSF.REX: 11 Now leaving RXBSF.REX ================================================================================ rxCalcSqrt(129) after running RXBSF.REX: 11.3578167 rxCalcSqrt(121) after running RXBSF.REX: 11 I wish you would have copied your output as baseline of what you were seeing. Here are my versions: $ java -version openjdk version "1.8.0_252" OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~16.04-b09) OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode) $ rexx -v Open Object Rexx Version 4.2.0 Build date: May 5 2017 Addressing Mode: 64 Copyright (c) IBM Corporation 1995, 2004. Copyright (c) RexxLA 2005-2013. All Rights Reserved. This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution or at http://www.oorexx.org/license.html I am thankful, -- Michael Lueck Lueck Data Systems http://www.lueckdatasystems.com/ _______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel