Implements precision on Decode and Encode