attribute values and font

   1833   1   0
User Avatar
Member
6 posts
Joined: June 2014
Offline
Hi, I have a question, if I create a float attribute, or I modify any parameter and set its value to 1.1 for example, and then I create a FONT and then add the value to the font display text, it shows something like 1.100000000000000001, is there a way to show exactly what I type on the value?
User Avatar
Member
7741 posts
Joined: Sept. 2011
Offline
Use a string attribute instead.

in a wrangle you could do:

s@value_str = sprintf(“%0.6g”, f@value_float);

and then use this string attribute in the font instead of the float attribute.

Attachments:
format_float_string.zip (13.6 KB)

  • Quick Links