1. Home
  2. CONSTANTS

CONSTANTS

CONSTANTS(g) or C(g) provides the value of various constants, according to the contents of g: e (for a string of 'e'), π ('pi'), missing value ('*' or 'missingvalue'), the conversion factor by which to multiply radians to get degrees ('degrees'), the conversion factor by which to multiply degrees to get radians ('radians'), the number ε defined as the smallest number such that the calculation 1+ε is detectable on the computer as greater than one ('epsilon'), the number used to represent infinity e.g when defining axes for graphics ('infinity' or '+infinity'), and the number used represent minus infinity ('-infinity'). The string can be specified in either upper or lower case (or any mixture) and can be abbreviated just like the string settings of options such as PRINT.

Updated on December 4, 2017

Was this article helpful?