Add getPrecision function
Fixed spelling