Skip to main content
Question

Why Metrics in v2 API MRR and Revenue are whole numbers

  • 28 August 2024
  • 1 reply
  • 6 views

The Overview metrics in v2 API MRR and Revenue are returning as whole numbers.
This should be in double so that the values can be more precise.

Example, real MRR is 16.82 but the API returns as 16 which is inaccurate.

1 reply

Userlevel 5
Badge +9

@classycircle Currently our API doesn’t make any guarantees whether it’ll return a double or an integer. For now we return integers but in the future we may change that to better accommodate the underlying data (for example, for smaller amounts we might use double while for larger amounts we round to the nearest integer.)

Reply