We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d8051b commit 113a9d0Copy full SHA for 113a9d0
2 files changed
src/main/java/graphql/Scalars.java
@@ -89,7 +89,7 @@ public Object parseValue(Object input) {
89
90
@Override
91
public Object parseLiteral(Object input) {
92
- return ((FloatValue) input).getValue().floatValue();
+ return ((FloatValue) input).getValue().doubleValue();
93
}
94
});
95
src/test/groovy/graphql/ScalarsTest.groovy
@@ -104,7 +104,7 @@ class ScalarsTest extends Specification {
104
105
where:
106
literal | result
107
- new FloatValue(42.3) | 42.3f
+ new FloatValue(42.3) | 42.3d
108
109
110
@Unroll
0 commit comments