Ticket #6145 (new enhancement)

Bug contains 2 commit(s) | SVN Diffs for #6145

 

Opened 10 months ago

Last modified 4 months ago

ICU BigDecimal does not support negative scale

Reported by: yoshito Assigned to: mark
Priority: assess Milestone: UNSCH
Component: others Version: 3.8.1
Keywords: Cc:
Load: Xref:
Java Version: 1.5 Operating System:
Project (C/J): ICU4J Weeks: 1
Review:

Description

A constructor in BigDecimal takes "scale".

public BigDecimal(BigInteger bi, int scale)

When negative scale is specified, this constructor throws NumberFormatException as documented. The behavior is same in JDK1.4. But since JDK1.5, Java supports positive scale value. ICU should support the positive scale value too.

Attachments

Change History

(follow-up: ↓ 2 ) 01/11/08 13:20:19 changed by yoshito

  • owner changed from somebody to yoshito.

(in reply to: ↑ 1 ) 01/11/08 13:29:56 changed by yoshito

Replying to yoshito: One correction

But since JDK1.5, Java supports positive scale value.


is actually - "But since JDK1.5, Java supports negative scale values."

01/11/08 13:30:24 changed by yoshito

  • owner changed from yoshito to mark.

07/10/08 14:14:01 changed by yoshito

  • priority changed from major to assess.

Add/Change #6145 (ICU BigDecimal does not support negative scale)




Anti spam check: