How to write <x.2@Height> without trailing zeros?
How to write <x.2@Height> without trailing zeros?
(OP)
How to write <x.2@Height> in a note without trailing zeros?
My value can be round number or decimal number, when it is round number I get two zeros after decimal mark, can it be done so if it is round number there is not trailing zeros?
Is there any guide for how to use text notes and PMI with expressions, attributes etc.???
My value can be round number or decimal number, when it is round number I get two zeros after decimal mark, can it be done so if it is round number there is not trailing zeros?
Is there any guide for how to use text notes and PMI with expressions, attributes etc.???
_____________________________
Enjoy your work and have fun!





RE: How to write <x.2@Height> without trailing zeros?
regards,
Tomas
RE: How to write <x.2@Height> without trailing zeros?
_____________________________
Enjoy your work and have fun!
RE: How to write <x.2@Height> without trailing zeros?
CODE
format("%0.3g", Height, "units", "unitless")The "g" format specifier will ignore trailing zeros. You can reference this new expression in your note rather than referencing the "Height" expression directly.
www.nxjournaling.com