[BUG] Erroneous Decimal Formatting (Commas in Fractions)

オープン
#70 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Rav1Chauhan がすでに取り組んでいます。

2026年2月24日 から。

  • #92 @Rav1Chauhan による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript
領域
backend

調査の方向性

The issue identifies StablePay/djed-sdk/src/helpers.js and the decimalScaling helper. Read that helper and run the example decimalScaling("123456", 6, 6). Done means the result is 0.123456, with commas used only to separate thousands in the integer part; an open linked pull request (#92) indicates work is already underway.

索引モデルが issue の本文から書いたものです。

説明

[y] I have checked for duplicate issues

Description:
The decimalScaling helper applies a regex to add commas to the fractional part of a number.

How to Reproduce:
Call decimalScaling("123456", 6, 6).

Actual Behaviour:
Returns "0.123,456".

Expected Behaviour:
Should return "0.123456". Commas should only be used as thousands separators in the integer part.

Location: StablePay/djed-sdk/src/helpers.js

[y] I want to work on this issue

主要言語
JavaScript
スター
16
フォーク
29
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

StabilityNexus/StablePay のほかの issue

StabilityNexus/StablePay の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。