String to Number
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-01-10 08:49 PM
‎2007-01-10
08:49 PM
Thanks in advance.
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-01-10 09:00 PM
‎2007-01-10
09:00 PM
Check out STR() in the GDL Reference Manual. It has several uses and variables.
Tom Waltz
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-01-10 09:22 PM
‎2007-01-10
09:22 PM
This came straight from the Archicad/GDL Help. STR requires a numerical expression and changes it to a string. I'm looking for a Function that turns a String into a Number.
STR (numeric_expression, length, fractions)
STR{2} format_string, numeric_expression [,
exta_accuracy_string])
The first form of the function creates a string from the current value of the numeric expression. The minimum number for numerical characters in the string is length, while fractions represents the numbers following the floating point. If the converted value has more than length characters, it is expanded as required. If it has fewer characters, it is padded on the left (length>0) or on the right (length<0).
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
STR (numeric_expression, length, fractions)
STR{2} format_string, numeric_expression [,
exta_accuracy_string])
The first form of the function creates a string from the current value of the numeric expression. The minimum number for numerical characters in the string is length, while fractions represents the numbers following the floating point. If the converted value has more than length characters, it is expanded as required. If it has fewer characters, it is padded on the left (length>0) or on the right (length<0).
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-01-10 09:28 PM
‎2007-01-10
09:28 PM
oh, sorry, that's SPLIT()
Tom Waltz
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-01-10 09:49 PM
‎2007-01-10
09:49 PM
That worked. Thanks.