Unsigned types and cast

#1

Hi,
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();
Rgds
hk

1 Like
#2

Outta the 8 Java primitives, only char is unsigned, although 16-bit only: :heavy_plus_sign:
Processing.org/reference/char.html

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

1 Like