Adding gone wrong

Hi, this happened when adding allot of numbers together I get a negative result? how could I fix this?

-1565903897
LVL 5
eNarcAsked:
Who is Participating?
 
Ephraim WangoyaCommented:

Use a larger data type like Int64 or Double
0
 
eNarcAuthor Commented:
its uses Int64;


-2050180960
-1851261970/198918990

0
 
eNarcAuthor Commented:
doh, it was integer; lol thanks.
0
 
Ephraim WangoyaCommented:

If you dont expect negative numbers for your result, you can also use

UInt64
or
Extended
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.