nearest integer continued fraction