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

    Special Character

    A special character is one that is not considered a number or letter. Symbols, accent marks, and punctuation marks are considered special characters. Similarly,...

    Software

    Table of contents What is Software? History of Software Software vs. Hardware Software vs. Hardware Comparison Chart What Types of Software Exist? Saas vs....

    Email Address

    What is an Email Address? An email address is a designation for an electronic mailbox that sends and receives messages, known as email, on a...

    Information Technology (IT) Architect

    The information technology architect applies IT resources to meet specific business requirements. The role requires a high degree of technical expertise as well as...

    Geotargeting

    Geotargeting is a method of delivering data or content to users based on...

    Agile Project Management

    Agile project management enables business teams to approach their projects and tasks with...

    Private 5G Network

    A private 5G network is a private local area network (LAN) that utilizes...