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

How to set Real values in the parameter section GDL

Partha02
Contributor

Whenever I am using GDL and there need to set a Real value instead of an Integer, it always rounds up the number and sets the value as Integer. How can I set a Real type and also get the Real (not the rounded up) value in the parameter section?  gdl round.pnggdl round 2.png

Thank you.

1 ACCEPTED SOLUTION

Solution
Barry Kelly
Moderator

For a height, I would be using a 'length' type parameter.

Then the decimal precision is set in your 'Working Units' in Project Preferences.

 

If you really want to use a 'Real Number' then the decimal precision will also be in the Working Units for 'Numbers without Units'.

 

Barry

 

Barry.


One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

View solution in original post

2 REPLIES 2

Solution
Barry Kelly
Moderator

For a height, I would be using a 'length' type parameter.

Then the decimal precision is set in your 'Working Units' in Project Preferences.

 

If you really want to use a 'Real Number' then the decimal precision will also be in the Working Units for 'Numbers without Units'.

 

Barry

 

Barry.


One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

vdentello
Booster

Even though it shows rounded, it keeps the decimals "hidden" AFAIK.
You may also want to set a fixed value though parameter tab.

Archicad User Since 2013
GDL Developer
Experimenting with API
from Brazil

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!