I have to deal with large numbers in my application from time to time. So I decided to use QWord to make sure that the range will (hopefully) cover all scenarios. To make long things short, it seems that the FreePascal Compiler does all mathematical operations within the integer range. This leads to some strange behvaior, i.e. that
if QWordVariable > 8600000000 then ...
does not enter the then-section even if the QWordVariable is greater than 8600000000. Only an explicit type conversation let the if-clause working properly:
if QWordVariable > QWord(8600000000) then ...
Does someone have an idea why the compiler does not automatically convert the static number into QWord for the comparison?
Thank you very much in advance and kind regards,
LT