Hello.
I have a formula to calculate weights of some numbers in C#. I have 9 weights. Sum of these weights are 1. So,These are too small.
For instance after calculating these weights, the result is something like below:
1/17 , 1/17 ,1/17 ,1/17 ,1/17 ,1/17 ,1/17 ,1/17 ,9/17
When I want to store these weights in a parameter with double type, the stored values will be:
0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0
The problem is that I need the exact value of these weights to use in another formula, and they are too important in that formula. Sum of them should be 1.
What can I do for solving this problem? Please help me.
Thanks a lot.