BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help

Search "Library Constants"

Contents Navigation

Library Constants

Print-Friendly  Order the PDF version  Order the RTF version
About 1 pages (232 words)
Library (computer science) Summary

Bookmark and Share Questions on this topic? Just ask!

Library Constants

The term library constant is relevant to computer science in the context of programming and programming languages. Library constants are defined constants that determine several numerically related properties that are permitted by a particular operating system. These properties include the range of integers, the range of real numbers, and the number of digits of precision (the number of integers appearing after the decimal place) that a system will permit.

In addition to their defining roles, the library constants found in programming languages are also useful in permitting programming tasks.

For example, in the libraries of the C++ operating system, two files, designated "limits.h" and "float.h," define library constants. The library constants and their meanings are summarized below:

  • INT_MAX: Designates the maximum allowable positive value that an integer may have.
  • INT_MIN: Designates the minimum allowable negative value that an integer may have.
  • DBL_MAX: Designates the maximum allowable positive double value.
  • DBL_MIN: Designates the minimum allowable negative double value.
  • DBL_DIG: Designates the maximum number of digits of precision.

The actual values specified by the library constants vary from one operating system to another.

As another example, in the libraries of occam, a parallel computing language, the constants and protocols are defined in six files. These are summarized below:

  • hostio.inc: Designates constants for the host file server interface.
  • streamio.inc: Designates constants for the stream i/o interface.
  • mathvals.inc: Designates math constants.
  • linkaddr.inc: Designates addresses of microprocessor links.
  • icks.inc: Designates rates of the microprocessor clocks.
  • msdos.inc: Designates constants specific to DOS.

This is the complete article, containing 232 words (approx. 1 page at 300 words per page).

More Information
  • View Library Constants Study Pack
  • Search Results for "Library Constants"
  • Add This to Your Bibliography
  • More Products on This Subject
    Library
    In programming, a library is a collection of precompiled routines that are available for use by pro... more

    Library Functions
    A library function is a function that can be called by a program to perform some task, but it is no... more


     
    Ask any question on Library (computer science) and get it answered FAST!
    Answer questions in BookRags Q&A and earn points toward
    discounted or even FREE Study Guides and other BookRags products!
    Learn more about BookRags Q&A
    Copyrights
    Library Constants from World of Computer Science. ©2005-2006 Thomson Gale, a part of the Thomson Corporation. All rights reserved.

    Join BookRagslearn moreJoin BookRags




    About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy