Unsigned types and cast

is there anything like unsigned, e.g. unsigned int?

or how to treat numbers which would after conversion long -> int normally fall into minus??
Is there anything like cast e.g.
int COG = (int) location.getBearing();

1 Like

Outta the 8 Java primitives, only char is unsigned, although 16-bit only: :heavy_plus_sign:

But Java offers unsigned static methods within its primitive wrapper classes: :coffee:

1 Like