0

In IDL console I want another way in order to obtain variable value, for debug purpose. This is how I do now:

IDL> cvel=299.792458e6
IDL> print, cvel
 2.99792e+008

There is a easy and quick way to obtain cvel value in console? Like for example in the following (erroneous) command:

IDL> cvel
% Attempt to call undefined procedure/function: 'CVEL'.
asynchronos
  • 583
  • 2
  • 14
eduardosufan
  • 1,441
  • 2
  • 23
  • 51

1 Answers1

1

This was added to IDL recently (at least by IDL 8.5, maybe earlier):

IDL> cvel=299.792458e6
IDL> cvel
   2.9979245e+08
mgalloy
  • 2,356
  • 1
  • 12
  • 10