By accident I found 'wrong' return values after operator || with internal grub4dos function calc
This was only the case with certain big numbers.
Incidence of problem: found on grub4dos version46a 20221222, reproduced on version 46a 20190909.
Numbers with problem found: decimal value of higher powers of 0.8 (evaluated without dot).
First print-screen shows the problem. In script CALCD.G4B* calc is used to identify certain input as being a number.
BTW: although decimals seems to be involved, the content of variable evaluated with calc is an integer
Other print-screens show returns of calc and logical value after operator || and |;
BTW last print-screen with graphicsmode 0x142 is with grub4dos version 46a 20222212
Any ideas?
*File: CALCD.G4B version 0.2.1
Postscript:
The problem has something to do with the number 1g . I recognized 1m in the nominator while calculating 0.8 ^ 10 with fractions: 8/10 * 8/10 * ... * 8/10 . After dividing the fractional-outcome, the integer value 'in' the decimals appears to be exactly the value of 1g (so without preceding 0. and 'seen' without zero's at the end). See next print-screen:
BTW FRACTION.G4B is unpublished, just a study-project.
In case of calc problem is existent with tenfolds, starting at calc 1g * 100
See last print-screen: