Browse Definitions:
Definition

Q format

Contributor(s): Matthew Haughn

Q (number) format is a fixed-point method of coding fractional and whole integers for processing by a computer’s CPU or a digital signal processor (DSP).

The Q format is used to enable rational number processing by a standard integer hardware arithmetic logic unit (ALU). Q format is used frequently when a CPU lacks a floating point unit (FPU). The format can also be useful for processing fractions on lower-cost DSPs, reducing hardware costs.

To enable processing of fractions on lower-cost or older hardware, Q is used to imply a binary point to represent fractions. Q format is stored and processed as regular binary signed integer. The Q format specifies how many bits are used to represent whole integers and how many bits are used to represent fractional integers. For example, to note that an algorithm is using one bit to specify whole integers and 15 bits to specify fractional integers, one would use the Q1.15 format. If there is no decimal in a Q format, such as Q55, that implies all bits are used for fractional values.

An example of how a fraction is processed under the Q format would be the real number 5.375 represented as a=0×23+1×22+0×21+1×20+0×2−1+1×2−2+1×2−3+0×2−4=5.375.

The Q format was integral to fractional operations in early PC CPUs. The Intel 8086 was the first CPU to support an add-on floating point co-processor. These co-processors reduced the time spent processing fractions and the need for methods like Q format. Modern CPUs such as the Intel Core series and AMD Ryzen have built-in floating point processors along with the x87 extension on the x86 -64 instruction set.

Watch an introduction to the floating point system below:

This was last updated in January 2018

Continue Reading About Q format

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

File Extensions and File Formats

SearchCompliance

  • smart contract

    A smart contract, also known as a cryptocontract, is a computer program that directly controls the transfer of digital currencies...

  • risk map (risk heat map)

    A risk map, also known as a risk heat map, is a data visualization tool for communicating specific risks an organization faces. A...

  • internal audit (IA)

    An internal audit (IA) is an organizational initiative to monitor and analyze its own business operations in order to determine ...

SearchSecurity

  • evil maid attack

    An evil maid attack is a security exploit that targets a computing device that has been shut down and left unattended.  An evil ...

  • Common Body of Knowledge (CBK)

    In security, Common Body of Knowledge (CBK) is a comprehensive framework of all the relevant subjects a security professional ...

  • rootkit

    A rootkit is a program or, more often, a collection of software tools that gives a threat actor remote access to and control over...

SearchHealthIT

  • value-based healthcare

    Value-based healthcare, also known as value-based care, is a payment model that rewards healthcare providers for providing ...

  • health informatics

    Health informatics is the practice of acquiring, studying and managing health data and applying medical concepts in conjunction ...

  • clinical trial

    A clinical trial, also known as a clinical research study, is a protocol to evaluate the effects and efficacy of experimental ...

SearchDisasterRecovery

  • crisis communication

    Crisis communication is a method of corresponding with people and organizations during a disruptive event to provide them with ...

  • Zerto

    Zerto is a storage software vendor that specializes in enterprise-class business continuity and disaster recovery in virtual and ...

  • crisis management plan (CMP)

    A crisis management plan (CMP) is a document that outlines the processes an organization will use to respond to a critical ...

SearchStorage

  • hard disk

    A hard disk is part of a unit -- often called a disk drive, hard drive or hard disk drive -- that stores and provides relatively ...

  • cache memory

    Cache memory, also called CPU memory, is high-speed static random access memory (SRAM) that a computer microprocessor can access ...

  • RAID 10 (RAID 1+0)

    RAID 10, also known as RAID 1+0, is a RAID configuration that combines disk mirroring and disk striping to protect data.

SearchSolidStateStorage

  • hybrid hard disk drive (HDD)

    A hybrid hard disk drive is an electromechanical spinning hard disk that contains some amount of NAND Flash memory.

Close