Remote Config Json forcibly convert double to long issue

Hi, i found some weird issue when i use Remote Config with json value.
When i try to use double without decimals, like 5.0, value after saved appears as 5. not 5.0.
But it is not for double with decimals, like 5.1.
Problem is, i intend that value should contains double type value, which always can be changed to 5.1 or some other double value and my code is also implemented as well.
But if the value is 5, it is considered as long, not double, and runtime error occurs.
Is there anyone else who suffer from same problem?
And i wonder whether it could be fixed.

Could you show your code that demonstrates the issue?