The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Force sum of rounded numbers to add up to 100
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Clairekun

Germany
175 Posts

Posted - 05/18/2020 :  5:01:47 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System: Win 10

Hello,

I haven't been able to find this anywhere, so sorry if it is stated within Origin help files and the question is redundant.

I have a column where its values are percentages and follow a formula. I have limited the decimals to 2 but, when Origin rounds the numbers automatically, they don't sum 100%. Where/how can I specify this boundary?

Thank you.

Edited by - Clairekun on 05/18/2020 6:04:10 PM

aplotnikov

Germany
169 Posts

Posted - 05/18/2020 :  5:50:09 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use round() function https://www.originlab.com/doc/LabTalk/ref/Round-func to calculate column values with the required precision. You may need to define a procedure to correct column values if the sum still differs from 100 - e.g., by proportional distribution of the difference.
Go to Top of Page

Clairekun

Germany
175 Posts

Posted - 07/14/2020 :  6:05:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have waited for a while to see if any other replies came up.

I already used round() function, what I need help with is the actual column value correction. Is such a thing possible? Proportional distribution seems like a great idea, but I fail to know how it could be done.

Thank you.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000