casting string to integer and double and round of to nearest integer values