libserialize: Always use a decimal point when emitting a float value
libserialize: Always use a decimal point when emitting a float value

JSON doesn't distinguish between integer and float. They are just
numbers. Also, in the current implementation, a fractional number
without the fractional part is encoded without a decimal point.

Thereforce, when the value is decoded, it is first rendered as Json,
either I64 or U64. This reduces type safety, because while the original
intention was to cast the value to float, it can also be casted to
integer.

As a workaround of this problem, this commit makes the encoder always
emit a decimal point even if it is not necessary. If the fractional part
of a float number is zero, ".0" is padded to the end of the result.

[breaking-change]

AerialX/rust-rt-minimal,victorvde/rust,KokaKiwi/rust,richo/rust,richo/rust,bombless/rust-docs-chinese,carols10cents/rust,carols10cents/rust,TheNeikos/rust,graydon/rust,pshc/rust,avdi/rust,ruud-v-a/rust,carols10cents/rust,XMPPwocky/rust,nwin/rust,aneeshusa/rust,zaeleus/rust,rprichard/rust,ktossell/rust,mvdnes/rust,graydon/rust,rprichard/rust,omasanori/rust,mihneadb/rust,nwin/rust,ejjeong/rust,sae-bom/rust,AerialX/rust-rt-minimal,aidancully/rust,bombless/rust,seanrivera/rust,rohitjoshi/rust,miniupnp/rust,pelmers/rust,mahkoh/rust,l0kod/rust,mvdnes/rust,dwillmer/rust,andars/rust,dinfuehr/rust,andars/rust,jroesch/rust,vhbit/rust,mdinger/rust,richo/rust,nwin/rust,kimroen/rust,miniupnp/rust,mahkoh/rust,omasanori/rust,gifnksm/rust,carols10cents/rust,robertg/rust,cllns/rust,ejjeong/rust,jroesch/rust,mihneadb/rust,zubron/rust,carols10cents/rust,mahkoh/rust,seanrivera/rust,jroesch/rust,GBGamer/rust,zachwick/rust,AerialX/rust-rt-minimal,dinfuehr/rust,jashank/rust,kwantam/rust,jroesch/rust,sae-bom/rust,defuz/rust,XMPPwocky/rust,kimroen/rust,hauleth/rust,dwillmer/rust,sae-bom/rust,ejjeong/rust,TheNeikos/rust,KokaKiwi/rust,AerialX/rust-rt-minimal,andars/rust,l0kod/rust,cllns/rust,robertg/rust,aneeshusa/rust,pshc/rust,graydon/rust,mihneadb/rust,zachwick/rust,hauleth/rust,emk/rust,andars/rust,avdi/rust,GBGamer/rust,krzysz00/rust,dwillmer/rust,kimroen/rust,TheNeikos/rust,avdi/rust,defuz/rust,zachwick/rust,l0kod/rust,zachwick/rust,kwantam/rust,hauleth/rust,nwin/rust,zaeleus/rust,KokaKiwi/rust,hauleth/rust,pelmers/rust,aneeshusa/rust,aneeshusa/rust,seanrivera/rust,AerialX/rust,pelmers/rust,ruud-v-a/rust,pshc/rust,pshc/rust,gifnksm/rust,mvdnes/rust,jroesch/rust,kwantam/rust,jroesch/rust,GBGamer/rust,robertg/rust,gifnksm/rust,dwillmer/rust,miniupnp/rust,dinfuehr/rust,GBGamer/rust,omasanori/rust,l0kod/rust,mihneadb/rust,ktossell/rust,vhbit/rust,graydon/rust,ebfull/rust,rohitjoshi/rust,zubron/rust,zubron/rust,ebfull/rust,vhbit/rust,zaeleus/rust,reem/rust,dinfuehr/rust,pshc/rust,rohitjoshi/rust,ktossell/rust,untitaker/rust,jashank/rust,jashank/rust,philyoon/rust,l0kod/rust,KokaKiwi/rust,mvdnes/rust,jroesch/rust,omasanori/rust,hauleth/rust,GBGamer/rust,ktossell/rust,mahkoh/rust,philyoon/rust,avdi/rust,ruud-v-a/rust,ruud-v-a/rust,sae-bom/rust,zachwick/rust,XMPPwocky/rust,krzysz00/rust,victorvde/rust,KokaKiwi/rust,hauleth/rust,andars/rust,bombless/rust,untitaker/rust,reem/rust,cllns/rust,pelmers/rust,kwantam/rust,richo/rust,ejjeong/rust,philyoon/rust,TheNeikos/rust,seanrivera/rust,ruud-v-a/rust,omasanori/rust,miniupnp/rust,krzysz00/rust,reem/rust,emk/rust,graydon/rust,bombless/rust,seanrivera/rust,aidancully/rust,vhbit/rust,untitaker/rust,defuz/rust,mahkoh/rust,gifnksm/rust,rprichard/rust,krzysz00/rust,jashank/rust,l0kod/rust,nwin/rust,defuz/rust,miniupnp/rust,mihneadb/rust,mdinger/rust,zaeleus/rust,AerialX/rust,emk/rust,defuz/rust,l0kod/rust,kimroen/rust,robertg/rust,pshc/rust,ejjeong/rust,untitaker/rust,emk/rust,dwillmer/rust,cllns/rust,carols10cents/rust,rohitjoshi/rust,emk/rust,gifnksm/rust,seanrivera/rust,gifnksm/rust,victorvde/rust,rprichard/rust,GBGamer/rust,aepsil0n/rust,avdi/rust,ejjeong/rust,jashank/rust,jashank/rust,cllns/rust,GBGamer/rust,victorvde/rust,TheNeikos/rust,zubron/rust,aidancully/rust,cllns/rust,zubron/rust,emk/rust,bombless/rust,GBGamer/rust,zachwick/rust,aneeshusa/rust,miniupnp/rust,AerialX/rust,mvdnes/rust,miniupnp/rust,mdinger/rust,kimroen/rust,miniupnp/rust,andars/rust,richo/rust,victorvde/rust,jashank/rust,vhbit/rust,defuz/rust,bombless/rust,KokaKiwi/rust,omasanori/rust,ebfull/rust,krzysz00/rust,zubron/rust,dwillmer/rust,rprichard/rust,sae-bom/rust,zaeleus/rust,kwantam/rust,l0kod/rust,ktossell/rust,kimroen/rust,kimroen/rust,zubron/rust,kwantam/rust,untitaker/rust,aidancully/rust,richo/rust,philyoon/rust,ruud-v-a/rust,robertg/rust,XMPPwocky/rust,untitaker/rust,aepsil0n/rust,AerialX/rust-rt-minimal,AerialX/rust,nwin/rust,nwin/rust,victorvde/rust,reem/rust,pelmers/rust,aidancully/rust,avdi/rust,ebfull/rust,graydon/rust,robertg/rust,reem/rust,emk/rust,mahkoh/rust,vhbit/rust,dwillmer/rust,philyoon/rust,krzysz00/rust,jroesch/rust,aneeshusa/rust,dinfuehr/rust,aepsil0n/rust,reem/rust,vhbit/rust,aidancully/rust,rohitjoshi/rust,aepsil0n/rust,dwillmer/rust,sae-bom/rust,mvdnes/rust,zaeleus/rust,mihneadb/rust,philyoon/rust,nwin/rust,rprichard/rust,TheNeikos/rust,rohitjoshi/rust,mdinger/rust,AerialX/rust-rt-minimal,pelmers/rust,aepsil0n/rust,ktossell/rust,ebfull/rust,AerialX/rust,aepsil0n/rust,XMPPwocky/rust,zubron/rust,AerialX/rust,mdinger/rust,mdinger/rust,bombless/rust,XMPPwocky/rust,pshc/rust,vhbit/rust,jashank/rust,ebfull/rust,dinfuehr/rust,ktossell/rust,pshc/rust