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
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
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)