Skip to main content

Floating Point Numbers

  • Chapter
  • First Online:
Principles of Parallel Scientific Computing

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 1316 Accesses

Abstract

Numbers from \(\mathbb {R}\) cannot be handled directly by computers, as they can have infinitely many digits after the decimal point. We have to truncate their representation. Storage schemes with a finite number of digits before and after the decimal point struggle: There are always regimes of values where they work prefectly fine and regimes where they cannot represent values accurately. We therefore introduce the concept of floating point numbers and discuss the IEEE standard. Its concept of normalisation allows us to establish the notion of machine precision, as we realise that the truncation into a finite number of digits equals rounding and introduces a bounded relative error. Since we work with approximations to real numbers, we have to be careful when we compare floating point numbers in our codes.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Storing the significant bits—note the d versus t.

  2. 2.

    From Latin, I consider datum to be singular and data plural.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tobias Weinzierl .

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Weinzierl, T. (2021). Floating Point Numbers. In: Principles of Parallel Scientific Computing. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-030-76194-3_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-76194-3_4

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-76193-6

  • Online ISBN: 978-3-030-76194-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics