Next up, we have the form function which can be used to format any data type, so let's call the brain
function to be able to format and then let's call our format, function, environment function.
You have to parse the first segment as a data type like in here and then a formal specification like
DB.
So Dimmeys, it will just pass the decimal integer.
So that's in our program.
We just get to 12 as it is.
That is the decimal integer.
Or you can just say it is an absolute value of this here.
So we can just define a minus here and now begin our program.
You can see we get minus two, so you'll get absolutely what is in here.
So that is that decimal integer.
So I will be dropping on all the specifications, on the resources so you can just check in there and
pass in the specification or use them.
So next we can use the B, which is used for binary codes.
So let's follow the trial and the B as a format specification and then run our code.
So you can see for 2L we have the binary code that is this eleven and eleven hundred and then we can
just use X to obtain hex codes.
So we're in our program and you can see this is the code for 12.
We can obtain the code by passing over.
So now we can get the actual code and then we can move on to the RSI or the round function.
So let's add in some decimal point values after this trial.
And we can now use just F and this is used to tell that we want to round up this number to some six
decimal places, a default saw in our program.
And you can see if you get thrown it up to sixty eight.
As you can see, we have two, three and two is lower than five.
That's why nothing is changing here.
So now we can also pass in a percent to find the percentage.
So let's say we want to find the percentage of what is twelve in two hundred so we can pass that and
then we just specify percentage in the format specification, an error in our program and C twelve is
a six percent in or two hundred.
Now moving on, we can also format the positioning of strength.
So let's pass some string like H.
And then we can just use the upper less then more than the upper arrow to change the alignment of our
strength.
So first of all, let's pass the LISANDRO and then we begin our program.
You can just see it is in here.
So you can see age is three lente or three characters.
So let's add a character and it will be just placed in this position.
So let's add for after this and then feed on our program.
It was just based.
In this position after four spaces, so it's already in there, that's why there is no change.
So let's move this to greater then.
And then if you're in our program, you can see on this force basis is now aligned in this place.
So if we increase this to five, so now in these five spaces, it will be moved to this position.
So we're in our program and you can see it is moved in there so we can use these symbols to align our
form and the position of our strings or anything.
So now we can use the Iraqi and then let's say we want it to be aligned between these five.
So as past five and the central line manque.
Then when our program, it is just a line in between are these five spaces, so let's say we want to
integrate it with some x rays on these sites.
So let's pass a asterisk at the first and then the Milera symbol and then the spaces.
So for our program and you can see we get now esoterics covered or around our each string so we can
also move this age in here and this thing in here by changing the sign that is the greater then and
then in our program, you can see it is shifted to the right side and then these x rays are on the left
side.
You can do the opposite is known as the enzyme running our program.
And you can see now ages on the left.
And now these are stories on the right.
So you can use the foremost function for the different formatting specifications to format our data
types.
That can be a stream or a numerical value.