Arethmic constructions with Int64

Giganews Newsgroups
Subject:Arethmic constructions with Int64
Posted by: Blauwbloeme Miguel
Date:Mon, 31 Aug 2009

Hi all,

Having the following problem.
I declared an Int64 as a constant *const x : Int64 = 9223372036854775808*

I have a variable var y : Int64.

I am doing following arethmic constructions
*y := x + (-5781867264271572959)*
*y := x + y*

The first gives the exact result but the second result is wrong. The result should be 12664876809437978657.

What am I doing wrong ?

Replies