Home »
Public Forums »
archive »
Re: size (in bytes) of integer, float, double, etc.
Re: size (in bytes) of integer, float, double, etc. [message #6555] |
Tue, 16 July 1996 00:00 |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Dean Schulze <schulze@lpl.arizona.edu> wrote:
>
> Does IDL have something like the SIZEOF() macro in C that
> will return the size of a built in data type in bytes i.e.
>
> fltsize = sizeof(float)
The "built in" data types in IDL have fixed data sizes
(User's Guide 3.1):
byte: 8-bit
integer: 16-bit
long: 32-bit
float: 32-bit
double: 64-bit
complex: 64-bit (2 floats)
double complex: 128-bit (2 doubles)
You can use the SIZE() routine to determine the data-type.
Dave Foster
foster@bial1.ucsd.edu
|
|
|
Current Time: Wed Oct 08 13:42:17 PDT 2025
Total time taken to generate the page: 0.00464 seconds