So how was that, how much?
I hope you didn't get stuck, but if you did, it's understandable because I'm asking you to combine
three different things here.
So first, let's create a double number.
My is equal to two thousand point something.
And of course, we can check that.
When we pressed play and it will tell us that is a double take now, we can also check that by just
typing my and the autofill thing for us will say, hey, this is a double, which you can see at the
bottom here.
OK, so that is now a double, how do we print that?
Well, you can print that directly to the command line.
This is a bit tricky because when I hit play, that is going to print it out, but it hasn't printed
a double, it's printed a string, because when you do this swift or the system tries to convert this
to a string, which it successfully manages to do, but what's happening really in the background is
this.
It's trying to create a string from my side, so if I hit play, we'll get exactly the same result.
OK, now when you start to create strings, let's say you want to show a user a sentence and say you
have X gigabytes of space left on your device, then you would combine an integer with a string.
And in that case you would have to convert the integer to a string and then add it to the other string
that you want to show to the user.
So that's when you'd actually use it.
So I hope you pass that.
Let's move on.