on-internet
← Community

Java calculator giving weird results

Stack Overflow ·

I'm having a problem with my Javacalculator. It sometimes gives me weird results, such as 357856 * 42342 = -2027530432 Could someone try to explain to me why this happens? Also it crashes when I use too big numbers, but I think that's kind of normal. Here's my activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddin

Comments

Sign in or sign up to comment and upvote.

No comments yet.