# 구독 가격을 $19.99로 설정할 수 없음

**URL:** https://meta.discourse.org/t/unable-to-set-subscription-price-to-19-99/393466
**Category:** Bug
**Tags:** subscriptions
**Created:** [1월 14, 2026, 5:44오후 UTC](https://meta.discourse.org/t/unable-to-set-subscription-price-to-19-99/393466 "2026-01-14T17:44:11Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2월 17, 2026, 11:11오전 UTC](https://meta.discourse.org/t/unable-to-set-subscription-price-to-19-99/393466/7 "2026-02-17T11:11:12Z")

</div>

@RGJ 님, 보고해 주셔서 감사합니다. 이 수정으로 해결될 것입니다 👍

> <https://github.com/discourse/discourse/pull/37877>
>
> Setting a subscription price like $19.99 would fail with "Invalid integer 1998.9…999999999998" from the Stripe API.
> 
> Due to IEEE-754 floating point arithmetic, \`parseFloat("19.99") \* 100\` produces \`1998.9999999999998\` instead of \`1999\`. This non-integer value is then sent directly to Stripe which rejects it.
> 
> Wrapping the multiplication in \`Math.round()\` ensures the result is always a proper integer before being stored as \`unit\_amount\`.
> 
> https://meta.discourse.org/t/393466

---

_[View the full topic](https://meta.discourse.org/t/unable-to-set-subscription-price-to-19-99/393466)._
