Json export ignoring decimal places on number property

Tue 27. Jun 2017, 19:21

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 8762 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!
RisingSun
 
Posts: 38
Joined: Mon 17. Apr 2017, 19:12

Re: Json export ignoring decimal places on number property

Fri 30. Jun 2017, 10:20

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
Nico Probst
Senior Software Engineer | Articy | LinkedIn
User avatar
[Articy] Nico Probst
Articy Staff
Articy Staff
 
Posts: 217
Joined: Wed 23. Nov 2011, 09:45
Location: Bochum

Return to Technical Discussion

Who is online

Users browsing this forum: No registered users and 15 guests

Who We Are
Contact Us
Social Links