Some BIFs not fully supporting BigDecimal values

Description

The following BIFs still had explicit DoubleCaster use in them, which meant they could give unexpected results if used with BigDecimal values.

  • arrayAvg()

  • arrayMax()

  • arrayMedian()

  • arrayMin()

  • arraySum()

  • parseNumber()

  • toNumeric()

  • isValid()

  • decimalFormat()

  • numberFormat()

  • listAvg()

The following areas of BoxLang that aren’t necessarily a BIF also had this issue

  • Boolean casting a number value

  • The expression Interpreter when passed a number value

  • array numeric index logic

  • query numeric index logic

  • struct sort comparators when performing numeric key sorts

  • XML numeric index logic

  • Any BIF or Component using Validator.Max

  • Any BIF or Component using Validator.Min

  • Any BIF or Component using Validator.GreaterThanZero

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created September 1, 2024 at 6:05 AM
Updated September 1, 2024 at 6:06 AM
Resolved September 1, 2024 at 6:06 AM