We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Integer decimals in Outfield

JGoode
Expert
For some reason when I set an integer parameter it displays 6 decimal points after the number. How can I remove these decimal points?
ArchiCAD 23

Windows 10
2 REPLIES 2
Anonymous
Not applicable
JGoode wrote:
For some reason when I set an integer parameter it displays 6 decimal points after the number. How can I remove these decimal points?
ZZ = 3 ! an integer
UI_OUTFIELD str ("% 0.1", ZZ), 10, 30, 25, 16 ! 1 decimal point
Or directly:
UI_OUTFIELD str (77, 3, 0), 10, 50, 30, 16 ! 77 is the number

Or you can make a request to the working environment.
Dform = "% 0.0" !!! integer
QW = REQUEST ("Linear_dimension", "", Dform)
JGoode
Expert
SL_GDL wrote:
JGoode wrote:
For some reason when I set an integer parameter it displays 6 decimal points after the number. How can I remove these decimal points?
ZZ = 3 ! an integer
UI_OUTFIELD str ("% 0.1", ZZ), 10, 30, 25, 16 ! 1 decimal point
Or directly:
UI_OUTFIELD str (77, 3, 0), 10, 50, 30, 16 ! 77 is the number

Or you can make a request to the working environment.
Dform = "% 0.0" !!! integer
QW = REQUEST ("Linear_dimension", "", Dform)
What if I don't want any decimal points?

edit: Never mind, worked it out. Thanks very much!
ArchiCAD 23

Windows 10

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!