## The maximum value for an int type in Go

https://groups.google.com/group/golang-nuts/msg/71c307e4d73024ce?pli=1 The germane part: Since integer types use two’s complement arithmetic, you can infer the min/max constant values for int and uint. For example, const MaxUint = ^uint(0) const MinUint = 0 const MaxInt = int(MaxUint >> 1) const MinInt = -MaxInt – 1 As per @CarelZA’s comment: uint8 : 0 to 255 uint16 : … Read more

## Fixed point vs Floating point number

A fixed point number has a specific number of bits (or digits) reserved for the integer part (the part to the left of the decimal point) and a specific number of bits reserved for the fractional part (the part to the right of the decimal point). No matter how large or small your number is, … Read more

## What is the meaning of number 1e5?

1e5 is a number expressed using scientific notation and it means 1 multiplied by 10 to the 5th power (the e meaning ‘exponent’) so 1e5 equals 1*100000and is equal to 100000, the three notations are interchangeable meaning the same.