Relative Content

Tag Archive for javacombinationsbigdecimal

Split Java BigDecimal into smaller BigDecimal adding up the original value

Is there a way or apache utils function to split a BigDecimal number into random n smaller BigDecimals. I am looking to have this function for creating test data various combinations for a provided BigDecimal. For example it can be use for creating orderEntries for amount which can be added to the provided orderTotal so it can be used to create an order of certain amount with n number of order entries with varying order entry amount.

Split Java BigDecimal into smaller BigDecimal adding up the original value

Is there a way or apache utils function to split a BigDecimal number into random n smaller BigDecimals. I am looking to have this function for creating test data various combinations for a provided BigDecimal. For example it can be use for creating orderEntries for amount which can be added to the provided orderTotal so it can be used to create an order of certain amount with n number of order entries with varying order entry amount.