From my perspective, I wouldn't necessarily call it a bug, but it's certainly an inconsistency between the two. Since I'm seeking to obtain the result of the C backend, under ASM, I'd prefer to modify my code so that ASM produces the same result as the C backend — which is 2,477,197. Therefore it might help me first of all, to understand why this is happening. Thanks all.
Code: Select all
EnableExplicit
OpenConsole()
Define JD.d = 2445152.5 ; Julian day count
PrintN("Value = " + JD)
Define a = JD + 32044 ; Returns 2477196 on ASM, 2477197 under C
PrintN("a = " + a)
Print("Press <ENTER> : ")
Input()