Top "Short" questions

A short integer is an integer number which may take less storage, while having a smaller range, than a standard integer on the same machine.

convert float to short with minimal loss of precision

I have this sine wave which generates floating point values (e.g. 0.37885) but I want them as shorts. Direct casting …

java floating-point short
Django admin list_display short_description

In django admin, If we define an element for list_display we can assign short_description for that field as …

django admin short
bitwise-ANDing with 0xff is important?

Doesn't bitwise-ANDing with 0xff essentially mean getting the same value back, for that matter, in this code? byte[] packet = reader.…

java byte bitwise-operators short bitwise-and
Print a short in binary format in Java

Is there any builtin support for outputting a binary representation of a short in java? There is of course, this, …

java binary short
short short int in c?

I'm trying to squeeze as much out of my memory as possible. I have a matrix of 4.9999995e13 ints but …

c char boolean int short