Leading zero

Leading zero

A leading zero is any zero that leads a number string with a non-zero value. For example, James Bond's famous identifier, 007, has two leading zeros. Often, leading zeros are found on non-electronic and LED digital displays that contain fixed sets of digits, such as the manual counter, the stopwatch, the odometer, and the digital clock. Leading zeros are also generated by many older computer programs when creating values to assign to new records, accounts and other files, and as such are likely to be used by utility billing systems, human resources information systems and government databases. Many digital cameras and other electronic media recording devices use leading zeros when creating and saving new files. They can also be used to prevent fraud by filling in character positions that might normally be empty.

Leading zeros are used to make ascending order of numbers correspond with alphabetical order: e.g. 11 comes alphabetically before 2, but after 02. See e.g. ISO 8601. This does not work with negative numbers, though, whether leading zeroes are used or not: −23 comes alphabetically after −01, −1, and −22, although it is less than all of them.

A prefix 0 is used in the C programming language to specify octal numbers (and 0x means hexadecimal).


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • leading zero suppression — erasure of the zeroes located to the left of a number stored in memory …   English contemporary dictionary

  • Zero-point energy — is the lowest possible energy that a quantum mechanical physical system may have; it is the energy of its ground state. All quantum mechanical systems undergo fluctuations even in their ground state and have an associated zero point energy, a… …   Wikipedia

  • Zero waste — is a philosophy that aims to guide people in the redesign of their resource use system with the aim of reducing waste to zero. Put simply, zero waste is an idea to extend the current ideas of recycling to form a circular system where as much… …   Wikipedia

  • Zero tolerance — policies are studied in criminology and are common in formal and informal policing systems around the world.Fact|date=December 2007 The policies also appear in informal situations where there may be sexual harassment or Internet misuse in… …   Wikipedia

  • Zero Punctuation — is a weekly video review column by Ben “Yahtzee” Croshaw produced for The Escapist. The series initially started after Croshaw produced two reviews for and The Darkness and uploaded them on YouTube. Something Awful owner Richard “Lowtax” Kyanka… …   Wikipedia

  • Zero crossing — is a commonly used term in electronics, mathematics, and image processing. In mathematical terms, zero crossing basically means the changing of sign (e.g. from positive to negative), that is represented with a crossing of the axis (zero value) in …   Wikipedia

  • Zero if — refers to the nonstandard deletion of if where standard English has it, leading to sentences like this:* You ll get there on time you hurry up (you ll get there on time if you hurry up)Zero IF can also be short for Zero Intermediate Frequency.ee… …   Wikipedia

  • Zero definite article — is a speaking behavior where the definite article the or a is not used. The definite article is sometimes omitted before words such as prison , school , bed , and (in non American dialects) hospital , hence:* She is in hospital. * He was taken to …   Wikipedia

  • Zero at — refers to the nonstandard deletion of at , at a place in a sentence where standard English has it, leading to sentences like this:* Meet me five (meet me at five)* We were eating the restaurant (we were eating at the restaurant)* I ll be the… …   Wikipedia

  • Zero of — refers to the nonstandard deletion of of in places where it exists in standard English leading to sentences like this:* I have a box chocolates (I have a box of chocolates)* They had a piece pie (they had a piece of pie)ee also*Zero at *Zero did… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”