answersLogoWhite

0


Best Answer

For this, you could use a smallint, if your data does not have fractional values. You could use a smallint even with fractional values up to two decimal places for the range below 300 pounds (just multiply by 100 before inserting the data, and divide by 100 when you retrieve it.

If your data may change ranges later on, or might include something other than pure numbers, you may consider using a varchar or text type for databases, or the String type in code.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What data type should you use in a variable for storing different people's weight between 10 and 300 pound?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a name for a variable used for storing text?

string


Which directory is used for storing variable data files?

Any one you want.


What is the purpose of a variable capacitor?

Capacitors are circuit devices for storing electric energy. Variable capacitors are mainly used in filter circuits and power supplies. They are used in a variety of appliances.


What are the limitations of a variable over advantage of array?

variable cant occupy contigious memory it may take complexity in storing vast data.this becomes easy on using the array concept....


How array differ from ordinary variable?

ordanry variable store one value at a time. arrays are used for storing more than one value at a time in a single variable name ordanry variable doesnt have subscript. array must have subscript syntax for ord. variable Datatype v1,v2...... syntax for array variable Datatype v1[n1],v2[n2].....

Related questions

What is a name for a variable used for storing text?

string


What is the different between parking and storing?

Parking means to keep something (a car) short-term or temporarly, and storing is for the long term.


What is a name for a variable used for storing true false statements?

Usually, the name of the variable can be most anything. This type of variable is called a LOGICAL variable.


What is a name for a variable used for storing true false statements - 48k?

boolean


Which directory is used for storing variable data files?

Any one you want.


What is the difference between storing on your device and storing on cloud?

storing on your device means storing whatever you want in device. storing on the cloud means storing it in the cloud.


In what way can we use variables?

A variable is used purely for the purpose of storing a single value. Being variable, the value can be changed at any time. A constant is the opposite of a variable; its value cannot be changed.


What is the purpose of a variable capacitor?

Capacitors are circuit devices for storing electric energy. Variable capacitors are mainly used in filter circuits and power supplies. They are used in a variety of appliances.


Advantages of safety measures in storing gases?

Avoiding explosions, fires, intoxications of peoples, pollution of the environment, thefts.


What are the limitations of a variable over advantage of array?

variable cant occupy contigious memory it may take complexity in storing vast data.this becomes easy on using the array concept....


Which command will take user input and store in a variable called data?

We need to know a language and what kind of data you are storing.


What are the energy storing molecules in each reaction?

Different reactions have different metabolites which may act as energy storing molecules. For instance, in glycolysis, fructose-1,6-bisphosphate and phosphoenolpyruvate represent just two of the main energy storing molecules.