Add Java doc.
Convert value according to units.