diff --git a/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java b/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java index ea2f33491..3e8ddc09a 100644 --- a/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java +++ b/android/src/main/java/com/dooboolab/RNIap/RNIapModule.java @@ -152,7 +152,7 @@ public void onSkuDetailsResponse(int responseCode, List skuDetailsLi for (SkuDetails skuDetails : skuDetailsList) { WritableMap item = Arguments.createMap(); item.putString("productId", skuDetails.getSku()); - item.putString("price", String.valueOf(skuDetails.getPriceAmountMicros() / 1000000)); + item.putString("price", String.format("%.02f", skuDetails.getPriceAmountMicros() / 1000000f)); item.putString("currency", skuDetails.getPriceCurrencyCode()); item.putString("type", skuDetails.getType()); item.putString("localizedPrice", skuDetails.getPrice());