
Originally Posted by
XxОsirisxX
Ok Zygon... I wrote it wrong, I meant result of subtract not the actual number.
Ok.. so... let's be a bit more "realistic".
You got 500 mesos.
unsigned int mesos = 500;
ok?
And now, for some reason you wants to subtract it with 1000.
mesos - 1000
Get it now?
Code:
uint mesos = 500;
if (mesos >= 1000)
mesos - 1000;
else
return;
You don't do that unless they have the mesos in the first place, and an exception would be thrown because the value is outside of the data type's precision. In MS you can't have negative money... Well you can, but it isn't on purpose, and this is because the variable is signed. You can owe money in the real world, but currency never has a negative value.

Originally Posted by
jon5477
Java doesn't have unsigned integers dumbass. Java doesn't support.
What he was providing was an example in a language that would, but yes everyone knows unsigned values aren't supported in Java, but there is a way on how you would acquire them for use in Java.