precision function

Precision calculations