Issue 73 in json-simple: Patch: use BigDecimal for numbers instead of Double

20 views
Skip to first unread message

json-...@googlecode.com

unread,
Jun 2, 2012, 7:03:04 PM6/2/12
to json-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 73 by tuomas.l...@gmail.com: Patch: use BigDecimal for numbers
instead of Double
http://code.google.com/p/json-simple/issues/detail?id=73

What steps will reproduce the problem?
1. put really large decimal number with also small parts in json input
2. parse
3. encode
4. detail is lost and/or formatting changes to scientific notation (which
is not exactly a defect)

What is the expected output? What do you see instead?

I'd like the numberical value to be preserved, with precision information
if possible

What version of the product are you using? On what operating system?

1.1.1 java6 and 7

Please provide any additional information below.

Patch is simple as one only need to replace Double handling with
yylex.java:608
{ BigDecimal val=new BigDecimal(yytext()); return new
Yytoken(Yytoken.TYPE_VALUE, val);


json-...@googlecode.com

unread,
Jul 4, 2012, 1:50:06 AM7/4/12
to json-...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 73 by fangyid...@gmail.com: Patch: use BigDecimal for
(No comment was entered for this change.)

json-...@googlecode.com

unread,
Jul 4, 2012, 1:51:06 AM7/4/12
to json-...@googlegroups.com
Updates:
Labels: -Type-Defect Type-Enhancement

Comment #2 on issue 73 by fangyid...@gmail.com: Patch: use BigDecimal for

json-...@googlecode.com

unread,
Aug 10, 2013, 1:02:40 AM8/10/13
to json-...@googlegroups.com

Comment #3 on issue 73 by jon.cham...@gmail.com: Patch: use BigDecimal for
Issue 57 has been merged into this issue.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

json-...@googlecode.com

unread,
Jun 22, 2015, 2:18:35 AM6/22/15
to json-...@googlegroups.com

Comment #4 on issue 73 by rahulkus...@gmail.com: Patch: use BigDecimal for
numbers instead of Double
https://code.google.com/p/json-simple/issues/detail?id=73

still not resolved
Reply all
Reply to author
Forward
0 new messages