Cluster API returns floating point numbers instead of integers

I am streaming cluster details from the Couchbase Cluster API.

Sometimes, I see that the returned values are floating point numbers like 1.001 or 0.9999 for cmd_get, ops/sec etc instead of integers like 1, 2.

Any specific reason for this?

could you share the exact API you are using and which stat specifically is doing this?