Add floor function to prevent sending 9.0 instead of 9 as a string result