Skip to content

Commit

Permalink
fix: 整地量の表示に失敗する不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Dec 20, 2023
1 parent 14c3d4f commit e032ee7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.github.unchama.seichiassist.subsystems.breakcount.domain.level

import cats.kernel.{LowerBounded, PartialOrder}
import com.github.unchama.generic.algebra.typeclasses.OrderedMonus
import com.ibm.icu.text.DecimalFormat

import scala.math.BigDecimal.RoundingMode

Expand All @@ -18,7 +17,7 @@ case class SeichiExpAmount private (amount: BigDecimal) extends AnyVal {

def subtract(a: SeichiExpAmount): SeichiExpAmount = mapAmount(_ - a.amount)

def formatted: String = new DecimalFormat("#,###").format(amount)
def formatted: String = String.format("%,d", amount.longValue)
}

object SeichiExpAmount {
Expand Down

0 comments on commit e032ee7

Please sign in to comment.