Binary values are in the form of additions 2s.
If I have to add 110001 (-15) and 101110 (-18), and the answer should be stored in a 6-bit integer, this is underflow / overflow.
This overflow, your professor is right. You save more bits that can be held in the allocated space (although the number that the bits represent is negative.)
Underflow is when a bit gets zero due to bias in a lot of math. Very often in fixed-point math. Divide a very small number by a very large number, and you pretty often get 0. This is underutilization.
-70 -90 .
Let assume R1[8 bits] = -70 R2[8 bits] = -90 Result[9 bits] = -160, an extra bit for overflow.
overflow_signed_detection 1 . , , .
EDIT: , -33 6 , -33, +31, , , :)
, . ( ).
, 0x7fffffff 0x00000001, 0x80000000, , , .
, ?
Source: https://habr.com/ru/post/1743091/More articles:Google Maps API - google-mapsRecommendations for a simple python 2D graphics library that can display pdf as well? - pythonNon-locking data structures in C ++ Compare and Swap Routine - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1743089/what-are-some-good-techniques-to-organize-js-includes-for-a-large-website&usg=ALkJrhjRDoV1NTTZLYl7jOklITjJQ1wLpwCompilation training in xcode - c ++Должен ли мы использовать объект Date в java? - javaCORBA Java client disconnects when an event occurs - javaDisplaying a mobile friendly webpage without the need for enlargement - htmlParsing a CSV file using python (to create a decision tree later) - pythonHow to get actual pointer address in C? - cAll Articles