GodotBigNumberClass icon indicating copy to clipboard operation
GodotBigNumberClass copied to clipboard

isLargerThanOrEqualTo() returns false when supplied with two values of zero

Open john-marinelli opened this issue 2 years ago • 4 comments

Code that produced the error:

var itemOne = Big.new(0) var itemTwo = Big.new(0)

print(itemOne.isLargerthanOrEqualTo(itemTwo))

This prints false currently.

john-marinelli avatar Jul 16 '22 22:07 john-marinelli

I am unable to reproduce this. Which version of Godot is this? And is this observed in an export or running from the editor?

ChronoDK avatar Aug 15 '22 09:08 ChronoDK

Version 3.4.4 stable was what was used. It was observed when running from the editor. I'll retry everything as it's been a bit, but I remember being pretty thorough when first testing.

john-marinelli avatar Aug 17 '22 02:08 john-marinelli

Yep, this code still prints false: func equal_test(): var item_one = Big.new(0) var item_two = Big.new(0) print(item_one.isLargerThanOrEqualTo(item_two))

john-marinelli avatar Aug 17 '22 02:08 john-marinelli

If it helps, this is being tested in a global auto-load script in the _ready() function, and I'm executing from my main game scene in debug mode from the editor.

john-marinelli avatar Aug 17 '22 02:08 john-marinelli

I have fixed this. Better later than never I guess ;-)

ChronoDK avatar Nov 24 '22 11:11 ChronoDK