Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SW-25 Maths - new methods #41

Open
14 tasks
lstypka opened this issue Aug 1, 2013 · 0 comments
Open
14 tasks

SW-25 Maths - new methods #41

lstypka opened this issue Aug 1, 2013 · 0 comments

Comments

@lstypka
Copy link
Member

lstypka commented Aug 1, 2013

// For all number types!

  • sequence(start, stop, step)
  • sequence(start, stop, interface satisfies { boolean satisfies(...) {} });
  • adjustToRange(value, min, max, Range.LEFT_CLOSED, RIGHT_CLOSED, BOTH_CLOSED)
  • byte : add with saturation ( byte, byte) // 120 + 5 = 125; 125+5 = 127; 127+1 = 127 etc
  • byte: wrapTo(byte, byte, byte startingNumber) // startingNumber: 100 => 120+5 = 125; 125+5 = 102, 102 + 30 = 105
  • random for BigInteger
  • random for BigDecimal
  • isZero(BigInteger)
  • isZero(BigDecimal)
  • isPositive(BigInteger)
  • isPositive(BigDecimal)
  • isNegative(BigInteger)
  • isNegative(BigDecimal)
  • mathematics methods for BigInteger BigDecimal (sqrt, etc ... )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant