cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
JGoode
Expert

Text2 to show variable Integer?

I can't seem to get it to work so any help would be much appreciated.
I've tried creating a str but it doesn't seem to work.
Thanks
ArchiCAD 27

Windows 10
2 Replies 2
Barry Kelly
Moderator
Here is an example straight from the GDL manual...
Example:
a=4.5
b=2.345
TEXT2 0, 2, STR(a, 8, 2) ! 4.50
TEXT2 0, 1, STR(b, 8, 2) ! 2.34
TEXT2 0, 0, STR(a*b, 8, 2) ! 10.55
Is something like this not working for you?

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
JGoode
Expert
Barry wrote:
Here is an example straight from the GDL manual...
Example:
a=4.5
b=2.345
TEXT2 0, 2, STR(a, 8, 2) ! 4.50
TEXT2 0, 1, STR(b, 8, 2) ! 2.34
TEXT2 0, 0, STR(a*b, 8, 2) ! 10.55
Is something like this not working for you?

Barry.
No it wasn't working but it was just a simple TEXT2 0, 0, variable so it's all fixed now
ArchiCAD 27

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!