cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

GDL: STR{2} User Precision

Lingwisyer
Legend

Hi All

 

Is there some other way to allow the user to set the precision as the format string does not allow parameters...?

 

"%[0 or more flags][field_width][.precision] conv_spec"

 

 

Ling.

AC22-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660
2 REPLIES 2

DGSketcher
Champion

Does STR (numeric_expression, length, fractions)  not give you what you want?

Apple iMac macOS Monterey / AC26UKI (most recent builds)

Lingwisyer
Legend

Ah. I was dealing with the Length input wrong so it was bugging out. And Fractions cannot be bigger than LengthLength being Fractions + 1 seems to work well.

AC22-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!