Articy Forum


https://www.articy.com:443/forum/

Json export ignoring decimal places on number property

https://www.articy.com:443/forum/viewtopic.php?f=33&t=18225

Page 1 of 1

Json export ignoring decimal places on number property

Posted: Tue 27. Jun 2017, 19:21
by RisingSun
Hi guys,

I have a template and feature set up with number boxes, and have the decimal places set to zero. See Block Strength in the image below:

Capture.PNG


But when I export, the JSON is including decimal places. Category, AI and Alignment are values from drop-down boxes, the rest are from number boxes.

Capture2.PNG
Capture2.PNG (10.67 KiB) Viewed 8852 times


It's a minor issue as my parser can handle it, but thought I'd raise it. I presume your exporter is treating them as numbers and not integers even when decimal places is zero.

Cheers!

Re: Json export ignoring decimal places on number property

Posted: Fri 30. Jun 2017, 10:20
by [Articy] Nico Probst
Hi RisingSun,

That indeed was a bit lazy :oops: as we just write numbers as floats all the time as it seems. But it would make more sense to check for the decimal places and write int instead.
I create a bug ticket for that.

Thank you for reporting that!

Best regards

Nico

All times are UTC
Page 1 of 1