ConvertDataTypes.comConvert data types programming in one click !

Convert int to short in Java

    19103 hits
  • int vIn = -32768.0;
  • short vOut = (short)vIn;