scala-java-locales icon indicating copy to clipboard operation
scala-java-locales copied to clipboard

DecimalFormat Does Not Suppress Negative Sign

Open mlvn23 opened this issue 4 years ago • 9 comments

This test case passes in JVM but not in JS:

        val uut2 = new DecimalFormat("0.00; 0.00")
        checkEquals("7.65", uut2.format(7.65))
        checkEquals(" 7.65", uut2.format(-7.65))
        checkEquals("98765.23", uut2.format(98765.234))
        checkEquals(" 98765.23", uut2.format(-98765.234))

mlvn23 avatar Apr 23 '20 19:04 mlvn23