Getting different outputs from the reviewers

What happens

I’m getting a different output from the reviewer in a Red program. He is getting a “#1.NaN”, while in my machines I’m getting the correct output.

What do you understand or find about that problem

Maybe there is a difference between versions of Red Lang, or installations.

Did you try any workaround? What did you do?

I proved the code with the same data in two different machines with a clean environment and it works as expected in the correct output.

Evidences

Mine (from the laptop, different from the machine where it was built)

The output from the reviewer

I need help with

I need to know what to do in this case because I don’t find the error. I need to know the versions that the reviewers are working with or the configuration of the language.

It is recommended that you use the language version specified in the Nix packages, in this case the version I am using to check the code for you is 0.64.

Regards,

So, I think were are using the same version. What would be the problem? Maybe is the log-2 operator?

Try to modify the code and send a new merge request. It is most likely because of this division by zero.