2021 | OriginalPaper | Buchkapitel
Numbers
verfasst von : Noel Kalicharan
Erschienen in: Julia - Bit by Bit
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