Distribute with weights #464
                  
                    
                      laurent512
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Currently, the divide API can only divide an amount evenly.
Would it be possible to include a weightedDivide api that would accept weidghting factors ?
It could work roughly like this :
currency(12).weightDivide([4,2]) = [8,4]
Thakn you :)
Beta Was this translation helpful? Give feedback.
All reactions