Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data types

Status
Not open for further replies.

Froskoy

Programmer
Jul 25, 2009
18
GB
Hi,

How many bytes of storage does a real data type require? I'm trying to predict the filesize of a rather large file.

Also, is an integer data type sufficient for storing values which will range from 747 to 1646 inclusive. If not, would it store values between -255 and 644?

Thanks very much,

Froskoy.
 
A real data type is 6 bytes, though you would do better to use a IEEE floating point data type in its stead (single, double, or extended) for numerous reasons. Though that alone won't dictate the size of a file containing it.

This will help answer your other (and others along the same lines) question:



I'm waiting for the white paper entitled "Finding Employment in the Era of Occupational Irrelevancy
 
Out of curiosity - why do you need to predict the file sizes? 2TB of storage is $200 these days. Memory requirements?
 
How many reasons STILL exist?
[ol]
[li]INet (transfer speed)[/li]
[li]INet (storage size)[/li]
[li]Portability (flash-drive)[/li]
[li]more...???[/li]
[/ol]

@dj - so just how much is a 2TB flash-drive these days? :D

Roo
Delphi Rules!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top