You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[QUESTION] I am trying to read a number in JSONReader with Feature.UseBigDecimalForDoubles , but when i get a String while parsing of "0E-18" i get it as double
#2867
Closed
satrajitN1 opened this issue
Aug 13, 2024
· 1 comment
I am trying to read a number in JSONReader with Feature.UseBigDecimalForDoubles , but when i get a String while parsing of "0E-18" i get it as double, i Observed in the code in line
that we are directly returning the double value , why is this a expected behaviour is there anyway while parsing i can force this to parse as BigDecimal ?
The text was updated successfully, but these errors were encountered:
请描述您的问题
询问有关本项目的使用和其他方面的相关问题。
I am trying to read a number in JSONReader with Feature.UseBigDecimalForDoubles , but when i get a String while parsing of "0E-18" i get it as double, i Observed in the code in line
fastjson2/core/src/main/java/com/alibaba/fastjson2/JSONReader.java
Lines 3006 to 3010 in 191c8c2
that we are directly returning the double value , why is this a expected behaviour is there anyway while parsing i can force this to parse as BigDecimal ?
The text was updated successfully, but these errors were encountered: