WEBVTT 00:03.320 --> 00:04.120 Welcome back. 00:05.340 --> 00:06.760 Hope you solve the challenge. 00:07.940 --> 00:09.880 Now I'm going to show you my own solution. 00:10.870 --> 00:11.530 Let's get started. 00:14.570 --> 00:18.220 As you know, currently, this program doesn't check for errors, right? 00:18.900 --> 00:22.100 So let's see what it brings when I pass an incorrect value to it. 00:25.420 --> 00:32.030 As you can see, it just prints zero feet in zero meters less than around to it now. 00:33.450 --> 00:37.830 Previously, I hadn't used airable here, let's bring it alive like this. 00:39.630 --> 00:45.450 Now I'm going to check for the air using a simple if statement like this one, if there is an equal 00:45.450 --> 00:53.490 to nil, OK, you now know that if the returns are valid from the function isn't nil, that means there 00:53.490 --> 00:54.030 is an error. 00:55.010 --> 01:02.720 So let's print that error value like this, I'm going to call printf that type error person. 01:02.730 --> 01:05.000 Q I'm using person. 01:05.000 --> 01:09.380 Q here because the argument is a string and I have one to print it inside. 01:09.380 --> 01:10.070 Double quotes. 01:11.040 --> 01:14.550 Phenotype is another number and a new life. 01:14.930 --> 01:16.830 Again, I'm going to pass arguments. 01:17.780 --> 01:18.490 All right, Don. 01:20.110 --> 01:26.130 Now, since there's an error so the program can't go on anymore, so let's return from the main function 01:26.140 --> 01:28.060 so the program will exit by itself. 01:30.520 --> 01:31.870 All right, that's right now. 01:33.050 --> 01:37.840 First, I'm going to pass it on, incorrect argument, hola, hola. 01:38.180 --> 01:44.060 OK, as you can see, the sprint error message, it detects the error and act accordingly now. 01:45.190 --> 01:51.640 Now, let's try to convert fee to meter by passing a numeric value like this, just a hundred. 01:52.540 --> 01:58.720 OK, so that means in the commercial operation that it wasn't an error, by the way, this program actually 01:58.720 --> 02:01.480 accepts any kind of float value as an input. 02:02.060 --> 02:06.730 For example, let's pass this float value to that 95. 02:07.930 --> 02:09.660 As you can see, it still works. 02:10.770 --> 02:19.080 Now, let's put it another flat value without zero values like this, just start and five here doesn't 02:19.080 --> 02:21.300 have a zero at the beginning, right. 02:22.140 --> 02:24.450 This is a shortened form of float values. 02:24.690 --> 02:25.890 I can type it like this. 02:26.740 --> 02:28.710 OK, this one also works cool. 02:29.730 --> 02:35.070 Now, as the last example, let's pass the float value in a scientific notation like this. 02:36.050 --> 02:46.040 One E three D just means one thousand three here adds three zeros after the one year it calculates it 02:46.040 --> 02:49.790 as a good and this also works from E six. 02:50.390 --> 02:52.370 Anyway, I played with it enough. 02:53.210 --> 02:53.980 OK, that's all. 02:54.650 --> 03:01.340 So now you know how our Huntingburg single Felda, by the way, from now on, you'll see it happening 03:01.340 --> 03:01.940 everywhere. 03:02.420 --> 03:07.910 So if you think that you didn't understand it well enough, just keep continue the cars and in time 03:07.910 --> 03:09.500 it's perfectly clear for you. 03:10.370 --> 03:11.740 OK, seeing the next picture. 03:11.840 --> 03:12.200 Oh, I.