December 2018
Intermediate to advanced
423 pages
4h 23m
English
Numbers or numeric values, and dates, are one of the most common things a programmer has to deal with daily.
In this chapter, we’ll explore different ways that we can handle numbers in Swift, convert to and from different units, or make use of all of Swift’s mathematical capabilities and also see how we can make our life easier when working with date objects.
I want to calculate the average of all elements in a given number array.
Then, we calculate the average.
Read now
Unlock full access