Dec(13,0) read from JSON camunda script trucated after write back to JSON

We use data type dec(13,0), when read be the script from proper JSON data is correct, written to JSON again by camunda script gets trucated. Probably by writing as float not double.
How to fix this?

best regards