Hello,
-
There are various unit-formatting functions out there. You could use such a function to format the given numbers in the suitable units as you do the math with the properties of the datastores that you retrieve.
For example, consider the Friendly Units post by LucD in which he has a nice function for various types of units and examples of how to employ the function. How does that help you?