Welcome back.
Hope you solve the challenge.
Now I'm going to show you my own solution.
Let's get started.
As you know, currently, this program doesn't check for errors, right?
So let's see what it brings when I pass an incorrect value to it.
As you can see, it just prints zero feet in zero meters less than around to it now.
Previously, I hadn't used airable here, let's bring it alive like this.
Now I'm going to check for the air using a simple if statement like this one, if there is an equal
to nil, OK, you now know that if the returns are valid from the function isn't nil, that means there
is an error.
So let's print that error value like this, I'm going to call printf that type error person.
Q I'm using person.
Q here because the argument is a string and I have one to print it inside.
Double quotes.
Phenotype is another number and a new life.
Again, I'm going to pass arguments.
All right, Don.
Now, since there's an error so the program can't go on anymore, so let's return from the main function
so the program will exit by itself.
All right, that's right now.
First, I'm going to pass it on, incorrect argument, hola, hola.
OK, as you can see, the sprint error message, it detects the error and act accordingly now.
Now, let's try to convert fee to meter by passing a numeric value like this, just a hundred.
OK, so that means in the commercial operation that it wasn't an error, by the way, this program actually
accepts any kind of float value as an input.
For example, let's pass this float value to that 95.
As you can see, it still works.
Now, let's put it another flat value without zero values like this, just start and five here doesn't
have a zero at the beginning, right.
This is a shortened form of float values.
I can type it like this.
OK, this one also works cool.
Now, as the last example, let's pass the float value in a scientific notation like this.
One E three D just means one thousand three here adds three zeros after the one year it calculates it
as a good and this also works from E six.
Anyway, I played with it enough.
OK, that's all.
So now you know how our Huntingburg single Felda, by the way, from now on, you'll see it happening
everywhere.
So if you think that you didn't understand it well enough, just keep continue the cars and in time
it's perfectly clear for you.
OK, seeing the next picture.
Oh, I.