IBM Cloudability

 View Only

 API data type currency is removing trailing numbers

Jeremy Fegenbush's profile image
Jeremy Fegenbush posted 12/12/24 05:02 PM

When I export a Cloudability report  as a CSV, the metric data may contain 10 or more digits to the right of  0.  For example, 0.0022993827.  However, when requesting the same data via an API call, the value would return 0 instead of 0.0022993827.

When I get the API measure information via this API call, (https://api.cloudability.com/v3/reporting/cost/measures), the data type is currency.

Is there a way to force the API call to return the value of measures as floats instead of currency?  As a float value this would include all of the decimal values instead of rounding or cutting off the trailing numbers.