Rounding is generally done to the nearest whole number when performing calculations and truncated when being shown.

The "Get asset info" and "Get tradable asset pairs" provide information on how many decimals the various assets use internally and how many are shown.