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

Home » Public Forums » archive » Re: long subscript...
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: long subscript... [message #53674] Thu, 26 April 2007 09:32 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Apr 25, 1:17 pm, kostis <kostis...@gmail.com> wrote:
> In the following code j is defined as a 'long' number...
> But the number j*100 as a subscript of x in plots command is not a
> 'long' number...
> causing a problem when the limit is reached..
> How do i fix it??
> How do i define all numbers long?

As other suggested, COMPILE_OPT defint32 is the way to make the
default integer a long, but:

IDL> j = 0L
IDL> help, j * 100
<Expression> LONG = 0

IDL promotes the value of an expression to the type needed to hold the
precision all the operands. So here, because j is a long, the result
is a long.

As David suggested in the other thread, your issue here is probably
with graphics card memory.

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: hist_nd to place just one point on a grid
Next Topic: tiff to eps

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

Current Time: Fri Oct 10 15:58:58 PDT 2025

Total time taken to generate the page: 2.79774 seconds