SOLVED!
Problem when using expressions to calculate the number of occupants automatically

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-07-01 05:03 PM
2021-07-01
05:03 PM
I;m struggling with the following: I use follow the directions of this page: https://helpcenter.graphisoft.com/knowledgebase/86867/ to calculate the number of occupants. The problem I face is when I have a parameter of occupancy that is not an integer, like say 2.6 or 3.2 those number get rounded up resulting in erroneous results. The expression used is
STRTONUM ( SPLITRIGHT ( {Property:ZONES/Occupancy type}, "| ", 2 ) )
Why is this happening? Does the roundup function in the Occupants affect also the Occupant load value?
Mac OSX 13.6.6 | AC 27 INT 5003 FULL
Solved! Go to Solution.
Labels:
- Labels:
-
Data management
1 ACCEPTED SOLUTION
Accepted Solutions
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-07-02 05:16 PM
2021-07-02
05:16 PM
Be sure that the "occupants load" number is a real, natural number (float), and not an integer; this is to be set in the property's value type.
Then everything should work fine.
I am not aware what the decimal seperator in Greece is. In Germany it's the comma.
You'll need to have the number in "occupancy type" be in the same format as per your PC's settings.
Lastly I would rather "ROUNDDOWN" than up... since rounding up makes no sense – if there is not enough space left you can't cram more people in, right?!
Then everything should work fine.
I am not aware what the decimal seperator in Greece is. In Germany it's the comma.
You'll need to have the number in "occupancy type" be in the same format as per your PC's settings.
Lastly I would rather "ROUNDDOWN" than up... since rounding up makes no sense – if there is not enough space left you can't cram more people in, right?!
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
2 REPLIES 2
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-07-02 05:16 PM
2021-07-02
05:16 PM
Be sure that the "occupants load" number is a real, natural number (float), and not an integer; this is to be set in the property's value type.
Then everything should work fine.
I am not aware what the decimal seperator in Greece is. In Germany it's the comma.
You'll need to have the number in "occupancy type" be in the same format as per your PC's settings.
Lastly I would rather "ROUNDDOWN" than up... since rounding up makes no sense – if there is not enough space left you can't cram more people in, right?!
Then everything should work fine.
I am not aware what the decimal seperator in Greece is. In Germany it's the comma.
You'll need to have the number in "occupancy type" be in the same format as per your PC's settings.
Lastly I would rather "ROUNDDOWN" than up... since rounding up makes no sense – if there is not enough space left you can't cram more people in, right?!
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-07-07 02:16 PM
2021-07-07
02:16 PM
Thanks @runxel.
Actually I used "ROUNDUP" because I'm calculating the maximum number of people that can fit in a given space, according to the fire standards
Actually I used "ROUNDUP" because I'm calculating the maximum number of people that can fit in a given space, according to the fire standards
Mac OSX 13.6.6 | AC 27 INT 5003 FULL