Any way to change a decimal separator of a list?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-03-20 02:59 PM
2019-03-20
02:59 PM
I'm using zone lists to feed a GDL object.
These lists use comma as decimal separator because this is the standard rule in France... like this :
LGT01 ; 02 ; Living ; 6,35 ; MainBut, GDL doesn't recognize the comma as a separator and ignores all the decimals.
Does someone know if there's a way to change the way decimal separators are set in AC without having to change the global parameters in the OS system ?
Thanks in advance,
Felipe Ribeiro Cunha
AC 26, macOS Monterey
AC 26, macOS Monterey
Labels:
- Labels:
-
Data management
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-03-21 02:08 AM
2019-03-21
02:08 AM
felcunha wrote:Unfortunately it is an OS setting and can't be controlled in Archicad itself.
Does someone know if there's a way to change the way decimal separators are set in AC without having to change the global parameters in the OS system ?
But GDL does not need to recognise the decimal point as a separator.
It is a number and therefore has an integer and decimal component already.
If you are trying to convert the number to a string, then you set the number of decimal places that you want to use.
In your example the semi-colon (;) is the separator.
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-03-21 10:55 AM
2019-03-21
10:55 AM
Hello Barry,
Yes but I need to get the whole number for my calculations in my object.
In my example, I want to get the 6.35 value to make math operations. Therefore, GDL does not recognize the comma as the decimal separator and gets only the "6" number.
I'd like to find a way to convert the commas into dots otherwise than using complex GDL code. (and even then I don't know if I could easily do!!)
Yes but I need to get the whole number for my calculations in my object.
In my example, I want to get the 6.35 value to make math operations. Therefore, GDL does not recognize the comma as the decimal separator and gets only the "6" number.
I'd like to find a way to convert the commas into dots otherwise than using complex GDL code. (and even then I don't know if I could easily do!!)
Felipe Ribeiro Cunha
AC 26, macOS Monterey
AC 26, macOS Monterey

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-03-22 02:08 AM
2019-03-22
02:08 AM
GDL will recognise the comma or point as the decimal point.
The problem may be that in the list you are getting the information from the 6,35 may actually be two numbers separated by a comma?
Barry.
The problem may be that in the list you are getting the information from the 6,35 may actually be two numbers separated by a comma?
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-03-22 08:32 AM
2019-03-22
08:32 AM
Barry wrote:No, I only get the integer numbers of it. I'll check what can be the problem... maybe a Mac OS issue??
GDL will recognise the comma or point as the decimal point.
The problem may be that in the list you are getting the information from the 6,35 may actually be two numbers separated by a comma?
Barry.
Felipe Ribeiro Cunha
AC 26, macOS Monterey
AC 26, macOS Monterey