Java icon indicating copy to clipboard operation
Java copied to clipboard

refactor: improve Floor method to handle edge cases

Open vardhan30016 opened this issue 2 weeks ago • 1 comments

  • Add edge case handling for NaN, Infinity, and out-of-bounds values
  • Improve consistency with Ceil.java implementation
  • Add handling for positive numbers between 0 and 1
  • Update Javadoc to match Ceil.java format and clarity
  • Use long cast to handle larger numbers correctly
  • [ ] I have read CONTRIBUTING.md.
  • [ ] This pull request is all my own work -- I have not plagiarized it.
  • [ ] All filenames are in PascalCase.
  • [ ] All functions and variable names follow Java naming conventions.
  • [ ] All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • [ ] All new code is formatted with clang-format -i --style=file path/to/your/file.java

vardhan30016 avatar Nov 26 '25 14:11 vardhan30016