How can I stop D from dropping decimals in strings

Tim tim.oliver at tutanota.com
Tue Feb 2 22:27:53 UTC 2021


Hi all,

I have to serialize an array like [0.0, 0.0, 0.0] to a Json 
object. During this process, the serializer creates a string of 
the array, but it creates "[0, 0, 0]", dropping the decimal. How 
can I stop this?


More information about the Digitalmars-d-learn mailing list