Constant

In programming, a constant is a value that never changes. The other type of values that programs use is variables, symbols that can represent different values throughout the course of a program.

A constant can be

  • a number, like 25 or 3.6
  • a character string, like “this is a string”
  • Constants are also used in spreadsheet applications to place non-changing values in cells. In contrast, a spreadsheet formula can produce a different value each time the spreadsheet is opened or changed.

    Webopedia Staff
    Webopedia Staff
    Since 1995, more than 100 tech experts and researchers have kept Webopedia’s definitions, articles, and study guides up to date. For more information on current editorial staff, please visit our About page.

    Related Articles

    @ Sign

    Pronounced at sign or simply as at, this symbol is used in e-mail addressing to separate the user' name from the user's domain name,...

    Munging

    (MUHN-jing) Munging (address munging), is the act of altering an email address posted on a Web page to make it unreadable to bots and...

    How to Create an RSS Feed

    In the second installment of RSS how-to, we look at some of the nonrequired (optional) channel and item tags, discuss RSS specifications in-depth and...

    Dictionary Attack

    (n.) (1) A method used to break security systems, specifically password-based security systems, in which the attacker systematically tests all possible passwords beginning with...

    ScalaHosting

    ScalaHosting is a leading managed hosting provider that offers secure, scalable, and affordable...

    HRIS

    Human resources information system (HRIS) solutions help businesses manage multiple facets of their...

    Best Managed Service Providers...

    In today's business world, managed services are more critical than ever. They can...