answersLogoWhite

0

The data type of an item price?

Updated: 8/11/2023
User Avatar

Wiki User

13y ago

Best Answer

I am assuming that the question is "What would the best data type to represent a price".

Although this is open for debate, in Java I think that the best data type for a price is double and the best data type in C# to be decimal.

I hope this answers your question.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

for item price in C, we use float data type.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The data type of an item price?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

In access what is the The data type of an item price?

float data


What is a descriptive word for each item in a record called in Microsoft access?

It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.It could be called a data item, or a field or attribute.


What is the definition of regular price?

The regular price of an item is the non-sale price of that item.


What does a upc bar code look like?

A UPC barcode identifies an item by a series of black lines with numbers underneath. It allows for data on such items to be stored such as what the item is as well as price.


How much is 200 rolls?

The price of 200 rolls of something depends on what type of rolls of an item you are purchasing. To find out how much of an item costs, multiply the price of the product by the amount of the product you want to purchase.


In mail merge which type of file contains information that varies for each individual item?

data source


What is meant by laptop and price?

Laptop is the type of computer that somebody might be looking for. Price is the range that they are going to spend on such an item. So they are looking for a laptop and a price for a laptop.


What is the data item with the greatest frequency called?

The data item with the greatest frequency is the mode.


If you sold an item for 20.00 and included sales tax and your sales tax rate is 7.3 what was the item price before sales tax?

The easiest way to understand the answer is to turn it around. If you wanted to calculate the item price plus tax, you would multiply the item price by 1.073. So, to back up to the item price from the item price plus tax, divide the item price plus tax by 1.073. $20.00 / 1.073 = item price before sales tax.


How do you create a supermarket database where a person can check on the price of the available products?

Assume that you are creating a database table to hold the information of the Items in the Super market. Write down the data type suitable to hold the following information: a) Item Number b) Item Description c) Unit Price d) Stock Balance e) Reorder Level f) Store Location


What type of data is price?

Does price have fractional parts? If so go with a double. Otherwise use an int or long, depending on how large price is going to get.


How do you auction an item on minecraft?

The Bukkit plugin "Auctions" you simply type /auc start (item name or I.D.) (Amount of the item) (price to be set for the first bid) (Bid raise amount)