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

    Human Resources Management System

    A Human Resources Management System (HRMS) is a software application that supports many functions of a company's Human Resources department, including benefits administration, payroll,...

    How To Defend Yourself Against Identity Theft

    Almost every worldwide government agency responsible for identity theft issues will tell you the same thing: The first step to fighting identity theft is...

    Infographic

    An infographic is a visual representation of information or data. It combines the words information and graphic and includes a collection of imagery, charts,...

    Phishing

    What is phishing? Phishing is a type of cybercrime in which victims are contacted by email, telephone, or text message by an attacker posing as...

    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...