Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,500 --> 00:00:01,730
What is going on, guys?
2
00:00:01,760 --> 00:00:08,630
My name is tech teacher Vlad, and in this video, we are going basically you are going to try, first
3
00:00:08,630 --> 00:00:13,460
of all, and then I'm going to show you how I have solved this exercise.
4
00:00:14,270 --> 00:00:21,620
But basically, what you have to do is to write a program that receives a variable and let's call this
5
00:00:21,620 --> 00:00:26,900
variable data in this variable is going to be of a floating point type.
6
00:00:27,020 --> 00:00:31,540
OK, we are going to see the floating point value from the user.
7
00:00:31,880 --> 00:00:38,180
And once you received this value, you should print only the decimal part of data.
8
00:00:38,570 --> 00:00:46,520
So, for example, if you have data like twelve point seven, then you have to extract the data that
9
00:00:46,520 --> 00:00:53,720
is after the decimal point, which in this case you will simply extract the decimal part, which is
10
00:00:53,720 --> 00:00:56,330
also a zero point seven.
11
00:00:56,390 --> 00:01:04,850
OK, so just the decimal point to extract from a floating point variable, so we probably know how we
12
00:01:04,850 --> 00:01:07,460
can extract just the integer type.
13
00:01:07,460 --> 00:01:11,070
If we take just this part, we know how it can be done.
14
00:01:11,390 --> 00:01:17,470
So now we what we want to do is to extract here the decimal part of this variable.
15
00:01:17,810 --> 00:01:19,430
So give it a try on your own.
16
00:01:19,640 --> 00:01:20,960
Think about the solution.
17
00:01:20,960 --> 00:01:26,390
Maybe try to think in a way of casting, for example.
18
00:01:27,080 --> 00:01:32,230
But I'm giving it to you guys and I will see you on the solutions video.
19
00:01:32,300 --> 00:01:34,880
Until then, have a great time.
1934
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.