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

Home » Public Forums » archive » -32768
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: -32768 [message #88079 is a reply to message #88078] Tue, 18 March 2014 22:02 Go to previous messageGo to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
среда, 19 марта 2014 г., 8:43:59 UTC+4 пользователь greg...@googlemail.com написал:
> I'd like to set an integer variable to the value -32768, but this doesn't work...
>
>
>
> IDL> a=-32768
>
> IDL> help,a
>
> A LONG = -32768
>
>
>
> ...it gives a long. This works:
>
>
>
> IDL> a=-32767-1
>
> IDL> help,a
>
> A INT = -32768
>
>
>
> but it's a strange thing to have to do.
>
>
>
> Greg

You can use FIX function

IDL> a=FIX(-32768)
IDL> help,a
A INT = -32768
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Killing Widget Objects
Next Topic: How to choose the pixels along a curve in an image

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

Current Time: Wed Oct 08 17:48:20 PDT 2025

Total time taken to generate the page: 0.00462 seconds