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
 All Forums
 Origin Forum
 Origin Forum
 Force sum of rounded numbers to add up to 100

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Clairekun Posted - 05/18/2020 : 5:01:47 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
Clairekun Posted - 07/14/2020 : 6:05:21 PM
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.
aplotnikov Posted - 05/18/2020 : 5:50:09 PM
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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000