Added check for double precision