Convert the value for S to an integer