Hotchocolate: InputType Argument: wrong double number

Created on 2 Jan 2020  路  9Comments  路  Source: ChilliCream/hotchocolate

My query has a paramter of InputType
image
When I passed my paramter: from: 2666666666, I got value 2666667000M, mean the number which longer than 7 digit was rounded. This caused my query to get wrong results. Is there any way to solve this problem? Sorry for my bad English!

bug

All 9 comments

If you use the decimal type. System.Decimal in combination with DecimalType

@michaelstaib but when I passed value 2666666666, I got value 2666667000. The value received is not equal to the input value. The 8th digit will be rounded

@michaelstaib hi, is there any way to solve this problem?

This is actually a bug in the way we coerce variables. I just wrote a test to check it out. We will fix this with the upcoming version 11. I will give you a ping once the fix is available as preview.

we might issue a hot fix since we found another issue with 10.3 ... we are discussing it at the moment.... I will keep you in the loop.

Hi. Any fix on this bug? My project is in dire need of a fix for this bug...

have you tried 10.3.5?

oh, this bug has already fixed on 10.3.5. I will close issue. Thank you very much!!!

I forgot to close the issue

Was this page helpful?
0 / 5 - 0 ratings