Split floating point number by factor and ensure parts sum to original

后端 未结 0 1901
独厮守ぢ
独厮守ぢ 2020-11-29 20:37

I\'m writing a script that processes bank transactions. I want to distribute transaction amounts into bins for budgeting purposes. For example

bins = [0, 0]
b         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题