Reminder is returned as float while using javascript function
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**vishnu** ([Bug 65450](https://bz.apache.org/bugzilla//show_bug.cgi?id=65450&redirect=false)):
Finding reminder using the __javascript function returns a float when expected an integer. This happens only when the reminder is 0
ex: _javascript(20%2) gives output as '0.0'
This was not there in the previous versions.
as a workaround we can use the toFixed(0) function.
Severity: minor
OS: All
Contributor guide
Research direction
Start by reproducing the JavaScript function case described in the issue, using _javascript(20%2), and inspect the implementation responsible for evaluating that function. Done means the zero remainder is returned as an integer rather than 0.0, with a regression test covering the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100