converting text to integers?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-01-07 10:20 PM
‎2004-01-07
10:20 PM
Is there a way to convert a text string of numbers (such as "4" fed from a "Values" list) to be an integer, so I can use it for calculation?
I keep thinking there has to be one, and I'm just not looking in the right place.
Thanks!
Tom Waltz
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-01-07 10:41 PM
‎2004-01-07
10:41 PM
TomWaltz wrote:The answer is SPLIT(), look in the Index of the Cookbook for that, if its Cookbook 3 that you have. Should be in the manual too.
I've been rooting around in the GDL manual & cookbook, without any luck so far....
Is there a way to convert a text string of numbers (such as "4" fed from a "Values" list) to be an integer, so I can use it for calculation?
SPLIT will take that first digit and make it into an integer number.
sometimes it would be nice if the index could be more like a thesaurus with expressions like 'string parsing' included. the new CB4 will have a clearer structure.
--:David Nicholson-Cole GDLA:--
http://sustainabletallbuildings.blogspot.com
http://chargingtheearth.blogspot.com
http://sustainabletallbuildings.blogspot.com
http://chargingtheearth.blogspot.com
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-01-07 10:41 PM
‎2004-01-07
10:41 PM
You can use integers in a values list by just leaving the numbers out of quotes. (Ex. - values "c" 2,3,4). This keeps the value as a number, not as text. Just be sure your parameters are for integers or real numbers when setting it up.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-01-07 11:00 PM
‎2004-01-07
11:00 PM
it was the quotes. Doh!!
My problem now is that my numbers are reading 4.00 and 12.00.... how do I kill the decimal points?
Thanks!
My problem now is that my numbers are reading 4.00 and 12.00.... how do I kill the decimal points?
Thanks!
Tom Waltz

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2004-01-08 12:03 AM
‎2004-01-08
12:03 AM
TomWaltz wrote:Be sure that the Parameter type is "Integer" and not "Real Number".
it was the quotes. Doh!!
My problem now is that my numbers are reading 4.00 and 12.00.... how do I kill the decimal points?
David Larrew, AIA, GDLA, GSRC
Architectural Technology Specialist
a r c h i S O L U T I O N S
WIN7-10/ OSX 10.15.7
AC 5.1-25 USA
Architectural Technology Specialist
a r c h i S O L U T I O N S
WIN7-10/ OSX 10.15.7
AC 5.1-25 USA