Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

float to short cast overflow

Language: Editor: Layout:
+ ] Show input
Compilation time: 0,19 sec, absolute running time: 0,11 sec, cpu time: 0,09 sec, average memory usage: 13 Mb, average nr of threads: 2, absolute service time: 0,32 sec 
edit mode |  history  | discussion
-32768 ... 32767
-32767 ... 32768
(System.Int16) -32768 == (System.Int32) 32768 ? False
(System.Int16) -32768 == (System.Int16) -32768 ? True

 0,95 -> ( 31128,65, -31128,65) -> ( 31128,00, -31128,00) ? True
-0,95 -> (-31129,60,  31129,60) -> (-31129,00,  31129,00) ? True
 0,96 -> ( 31456,32, -31456,32) -> ( 31456,00, -31456,00) ? True
-0,96 -> (-31457,28,  31457,28) -> (-31457,00,  31457,00) ? True
 0,97 -> ( 31783,99, -31783,99) -> ( 31783,00, -31783,00) ? True
-0,97 -> (-31784,96,  31784,96) -> (-31784,00,  31784,00) ? True
 0,98 -> ( 32111,66, -32111,66) -> ( 32111,00, -32111,00) ? True
-0,98 -> (-32112,64,  32112,64) -> (-32112,00,  32112,00) ? True
 0,99 -> ( 32439,33, -32439,33) -> ( 32439,00, -32439,00) ? True
-0,99 -> (-32440,32,  32440,32) -> (-32440,00,  32440,00) ? True
 1,00 -> ( 32767,00, -32767,00) -> ( 32767,00, -32767,00) ? True
-1,00 -> (-32768,00,  32768,00) -> (-32768,00, -32768,00) ? False
 1,01 -> ( 32767,00, -32767,00) -> ( 32767,00, -32767,00) ? True
-1,01 -> (-32768,00,  32768,00) -> (-32768,00, -32768,00) ? False
 1,02 -> ( 32767,00, -32767,00) -> ( 32767,00, -32767,00) ? True
-1,02 -> (-32768,00,  32768,00) -> (-32768,00, -32768,00) ? False
 1,03 -> ( 32767,00, -32767,00) -> ( 32767,00, -32767,00) ? True
-1,03 -> (-32768,00,  32768,00) -> (-32768,00, -32768,00) ? False
 1,04 -> ( 32767,00, -32767,00) -> ( 32767,00, -32767,00) ? True
-1,04 -> (-32768,00,  32768,00) -> (-32768,00, -32768,00) ? False