JSON number is a double precision IEEE number, not a single precision.

This commit is contained in:
berend
2008-08-27 04:29:12 +00:00
parent bf781a9d25
commit 31619fc88e

View File

@@ -31,11 +31,11 @@ feature -- initialization
numeric_type := INTEGER_TYPE numeric_type := INTEGER_TYPE
end end
make_real (an_argument: REAL) is make_real (an_argument: DOUBLE) is
-- Initialize an instance of JSON_NUMBER as REAL -- Initialize an instance of JSON_NUMBER as DOUBLE
do do
item := an_argument.out item := an_argument.out
numeric_type := REAL_TYPE numeric_type := DOUBLE_TYPE
end end
@@ -73,9 +73,9 @@ feature -- Status
feature -- Implementation feature -- Implementation
INTEGER_TYPE: INTEGER is 1 INTEGER_TYPE: INTEGER is 1
REAL_TYPE: INTEGER is 2 DOUBLE_TYPE: INTEGER is 2
numeric_type: INTEGER
numeric_type: INTEGER
invariant invariant