You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by GitBox <gi...@apache.org> on 2019/03/15 15:31:45 UTC

[GitHub] [incubator-daffodil] jadams-tresys opened a new pull request #196: Use setScale() not round() when rounding BigDecimals

jadams-tresys opened a new pull request #196: Use setScale() not round() when rounding BigDecimals
URL: https://github.com/apache/incubator-daffodil/pull/196
 
 
   In order to perform a round/floor/ceiling on a BigDecimal and not retain
   any decimal points we need to use BD.setScale with a precision of 0. When
   the BD.round function is used with a precision or 0, no rounding is
   performed.
   
   DAFFODIL-2076

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services