Mathematica 9 is now available
[an error occurred while processing this directive] $ModuleNumber

  • $ModuleNumber gives the current serial number to be used for local variables that are created.
  • $ModuleNumber is incremented every time Module or Unique is called.
  • Every Mathematica session starts with $ModuleNumber set to 1.
  • You can reset $ModuleNumber to any positive integer, but if you do so, you run the risk of creating naming conflicts.
  • See the Mathematica book: Section 2.6.3.
  • See also: $SessionID, Temporary.


    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.