3/18/2022 8:12 AM | |
Joined: 11/29/2018 Last visit: 4/23/2024 Posts: 12 Rating:
|
Hi Can somebody help me how I can round up/down to 3 decimals? Examples 30=0 60=100 3879=4000 8375=8000 Br Kasper |
3/18/2022 9:40 AM | |
Joined: 9/23/2005 Last visit: 4/4/2025 Posts: 4976 Rating:
|
First, you claim to round to some constant number of decimals. But I do not understand how it is possible that if 3879 -> 4000 then 60 -> 100 and not 0. Second, are the numbers integers or floating points or you haven't decided yet ? |
Regards, |
|
3/18/2022 10:05 AM | |
Joined: 11/29/2018 Last visit: 4/23/2024 Posts: 12 Rating:
|
Hi Jacek I was a little fast on the phone..:) what I mend was that I always wont to round up or down to 100 so it goes from 0-100-200-300-400-500-600-700-800 and so on.. I was thinking it would change at 50 so if lower then it goes down or higher it goes up to the nearest XXX Examples 30=0 60=100 3879=3900 8375=8400 Br Kasper |
Last edited by: kaan86 at: 03/18/2022 10:06:00 |
|
3/18/2022 10:39 AM | |
Joined: 9/23/2005 Last visit: 4/4/2025 Posts: 4976 Rating:
|
Clear. Now it's high time you decided a data type. |
Regards, |
|
3/18/2022 10:41 AM | |
Joined: 11/29/2018 Last visit: 4/23/2024 Posts: 12 Rating:
|
It is int |
3/18/2022 11:19 AM | |
Joined: 9/23/2005 Last visit: 4/4/2025 Posts: 4976 Rating:
|
REAL_TO_INT(ROUND_REAL((INT_TO_REAL(#YourInt) / REAL#100.0))* REAL#100.0) |
Regards, |
|
We are working on a new user interface with better overview and more relevance.
To explore the new Forum, you can follow the textbox in the right column, which will lead you to the corresponding page in the new Forum. Alternatively, you can start from the main page by following this link:
https://sieportal.siemens.com/en-ww/support/forum
In the coming days, we will update the configuration step by step, so that you are directed to the new Forum by default. The “classic Forum” will remain available for all known functionalities alongside the new one.
We are thrilled to finally share the future of our Forum with you. Thank you for your commitment!
Kind regards,
the Forum Support Team
Follow us on