converts terany to decimal