The INTEGER data type stores whole numbers that range from -2,147,483,647 to 2,147,483,647 for 9 or 10 digits of precision. The number 2,147,483,648 is a reserved value and cannot be used. The INTEGER value is stored as a signed binary integer and is typically used to store counts, quantities, and so on.
Range of int = -2147483648 to 2147483647 Range of unsigned int = 0 to 4294967295 Range of char = -128 to 127 Range of unsigned char = 0 to 255 Range of long = -9223372036854775808 to 9223372036854775807 Range of unsigned long = 0 to 18446744073709551615 Range of short = -32768 to 32767 Range of unsigned short = 0 to ...
Integer is a common data type which is widely use in general programming and in scientific computing. Integer is defined as a number which has no fractional component. Numbers which have a fractional component is known floating point numbers.
I want to define a type named Int_1_100_Type
which is an integer
variable in the range from 1 to 100.
How should I define this one?
for example:
I am passing this variable to a function which accepts variable of type Int_1_100_Type
,
funca(Int_1_100_Type Var1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With