There are 1000 ml . in a Liter. So, figure from there.
Divide your quantity by 1000, you will get the answer in liter.
i.e. 42/1000 = 0.042 liter
Hope this helped you to some extent.
By the way, before solving such kind of problems, you should know the conversion factor.
.042.
This is a Simple Dialog Demo.