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

Home » Public Forums » archive » Convert array of one element to integer ?
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
Convert array of one element to integer ? [message #6304] Sat, 08 June 1996 00:00 Go to next message
santanu is currently offline  santanu
Messages: 8
Registered: March 1996
Junior Member
Hi,
How can I convert a long array with only one element to type
scalar integer ?
I apologise if this is a FAQ.
Thanks,
Santanu
santanu@uiuc.edu
Re: Convert array of one element to integer ? [message #6445 is a reply to message #6304] Mon, 10 June 1996 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
santanu@glibm5.cen.uiuc.edu (S Bhattacharyya) wrote:
>
> Hi,
> How can I convert a long array with only one element to type
> scalar integer ?

IDL> i = lonarr(1)
IDL> help,i
I LONG = Array(1)
IDL> i = fix( i(0) )
IDL> help,i
I INT = 0
IDL>

My second suggestion would be:

IDL> ?


Dave Foster
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Need help:Plot the impulse response of filter.
Next Topic: 3D rotations in IDL

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

Current Time: Wed Oct 08 13:36:54 PDT 2025

Total time taken to generate the page: 0.00726 seconds