This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / New in Version 3.0 / Programming  /

  • NHoldAll is an attribute which specifies that none of the arguments to a function should be affected by N.
  • NHoldAll, NHoldFirst and NHoldRest are useful in ensuring that arguments to functions are maintained as exact integers, rather than being converted by N to approximate numbers.
  • See the Mathematica book: Section 2.5.3.
  • See also: NumericFunction, HoldAll.

    Further Examples

    Usually N goes inside functions and gets applied to each of their arguments.



    This tells Mathematica not to apply N to any of the arguments of f.


    Now both of the arguments of f are left in their exact form.