Skip to main content

Numbers

  • Chapter
  • First Online:
Julia - Bit by Bit

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

  • 2902 Accesses

Abstract

In this chapter, we will explain the following:

  • Integer data types - Int, Int32, Int64

  • Floating-point data types - Float32, Float64

  • How to read Int and Float values

  • What happens when Int and Float values are mixed in the same expression

  • What happens when we assign Int to Float and vice versa

  • How to print an integer using a field width

  • How to print a floating-point number to a required number of decimal places

  • What happens when you use expressions with different types

  • Assignment operators

  • Updating operators

  • The functions trunc, ceil, floor, round

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 PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

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

Kalicharan, N. (2021). Numbers. In: Julia - Bit by Bit. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-030-73936-2_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-73936-2_2

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-73935-5

  • Online ISBN: 978-3-030-73936-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics