Author: |
|
Creation Date: |
2004-03-23 |
• ArchiCAD 9 |
|
Platform: |
• Mac OS X |
Audience: |
• average users |
Reference: |
• [tracking number] |
A new, additional option was introduced in ArchiCAD 8 for the STR command in GDL. The history of this is the following: during the development of AC 8 the need arose that the STR command writes out data (especially numbers converted into string form) exactly in the same format as the user wanted. Earlier, numbers were always written out with the character '.' as decimal separator, as this is the default character GDL expects internally in all its operations. This meant that it would take the decimal separator from the system. For example, in some countries, the ',' character is used as decimal separator.
Problems could arise when a value created with the STR command was used by another GDL function, such as some of the REQUEST or REQ functions. The REQUEST function expects in some cases a number, where the decimal separator is the '.' character, but if the decimal separator is set to some other character in the system, then the REQUEST function will return an error, as it cannot use the data resulting from the STR command. So, from AC 8, there is an additional flag among all the others for the STR command in GDL: '^' (power sign) If you use that, GDL will not take into consideration the system setting for decimal separator, but will do it the old way. So here is how to do it:
