ParametricText
ParametricText copied to clipboard
Plug-in generates a bunch of zeroes past the decimal point
Describe the bug Plug-in generates a bunch of zeroes past the decimal point. See screenshots. If I change parameter named "pitch" to "2" it magically works well, but when changed back to "3" the zeroes reappear.
To Reproduce Not sure, but here's my fusion file: M24x3mm tester v1.f3d.zip
Expected behavior No unnecessary zeroes
Screenshots
Main problem:
List of parameters @ time of stupid:

If parameter "pitch" changed to "2" zeroes disapperar. They reappear if changed back to "3".
Software
- OS: macOS Monterey
- Fusion 360 version: 2.0.12888 (paid)
- ParametricText version: 2.0.12888 (installed manually, see issue 34)
Hi, thanks for a well-written error report!
Please try installing ParametricText v2.3.0, which tries to be a bit smarter about decimal defaults.
Otherwise, try setting the number of decimals explicitly:
{pitch:.1f} Should give one decimal
{pitch:.0f} Should give zero decimals
Ah shit, missed that there was an update.