comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: size (in bytes) of integer, float, double, etc.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: size (in bytes) of integer, float, double, etc. [message #6555] Tue, 16 July 1996 00:00
David Foster is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL & Win95 -- arrggh
Next Topic: Re: newbie MOMENT question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:42:17 PDT 2025

Total time taken to generate the page: 0.00464 seconds