c - Is sign magnitude used to represent negative numbers? -
i understand two's complement used represent negative number there method of using sign magnitude. sign magnitude still used represent negative numbers? if not used then? , how machine interprets negative numbers using two's complement able communicate , understand machine uses sign magnitude instead? yes, sign magnitude used today, though not might expect. example, ieee floating point uses single "sign" bit denote positive or negative. (as result, ieee floating point numbers can -0.) sign magnitude not commonly used today integers, however. communication between 2 machines using different number representations presents problem if both try use native encoding format. if common format defined exchanging information, there no problem. example, machine uses two's complement can construct number using sign magnitude encoding (and vice versa). these days, different machines more communicate using ascii representation of number (eg. in json or xml), or...