Integer

Common datatype in many programming languages for representing a whole number

Unsigned

An unsigned variable is a variable that can only represent non-negative numbers.

Faster useful value

Quality | Example |
---|---|

Division much faster |
"In case of unsigned integer division this problem does not arise which is why generally integer division works much faster for unsigned types than for signed types" from question "Compiler optimization on marking an int unsigned?" |

Faster |
"The idea here is threefold readability using operator functions with compatible left and right arguments as well as return value and the use of integer multiplying operators being faster than unsigned operators" from question "What VHDL libraries to use for decimal modulus" |

More useful |
"Furthermore signed integer types just tend to be more useful than unsigned types" from question "Signed as default in C" |

Bigger guarentee data

Quality | Example |
---|---|

Bigger |
"An implementation that has no such unsigned type say because pointers are bigger than any integer type won t provide it" from question "How can I check a certain type is already defined in C compiler?" |

Wider |
"It can only disappoint you if your compiler has an integer type wider than unsigned long long and you use it" from question "Compatibility of vsnprintf and the macros from inttypes" |

Always bigger |
"I do have the guarentee that the signed integer is always bigger or equal than the unsigned integer in bytes so no data should be lost due to lack of space" from question "Cast unsigned to signed and back" |

Int larger promotions

Others

Quality | Example |
---|---|

Larger |
"The problem is that the input integer is larger than what would fit in an unsigned long long" from question "Find digital roots of a number" |

Bigger size |
"Both of following types are semantically equivalent minimum 64bit integer without sign and with equal or bigger size than unsigned long int" from question "Unsigned long long VS unsigned long long int" |