Android examples for java.lang:Math

Click the following links for the tutorial for java.lang and Math.

- Constrain a given degree to between 0-359
- convert Meter To Kilometer
- calculate BMI for your body
- calculate BMR for your body
- calculate Max Weight for your body
- calculate Min Weight for your body
- Creates a float array of vertices for a 2d circle
- round double value by digit
- divide double value by scale
- multiply double value
- round double value by scale and rounding mode
- subtract two double value
- sum two double value
- Calculates distance between locations in miles.
- Calculates a rough distance metric about what distance the face has to the device.
- Utility method to format the distance in meters
- format Distance
- Check if two double precision numbers are "equal", i.e.
- Return true if c is between a and b.
- Calculates the distance of the intersection between the specified ray and the target, or return -1 if the ray doesn't intersect the target
- Returns the union of two Integer lists.
- Compute the factorial of a value Use this method for large values.
- Compute the factorial of a value Use this method for small values.
- Get fibonacci
- Return the greatest common divisor of two long values
- next Power Of Two by shifting
- Returns the logarithm of a custom base for a given number.
- round double value
- get Closest Power Of Two
- is Prime Int
- square root Big Int
- square root Long
- Shifts 4 signed bytes into a 32 bit integer in network order (big endian).
- Truncates a float number f to decimal Places .
- pythagorean Proposition
- is Power Of Two
- next Power Of Two
- Calculate lerp
- round Two Decimals
- segments Intersection
- get Fractional Count
- get Integer Count
- is BigDecimal Negative
- is BigDecimal Positive
- is BigDecimal Value Multiple of another BigDecimal
- compute Exact Percent
- Calculate percentage, based on total and current value.
- Number's Exponential
- Check if a number is Even
- Check if a number is Odd
- Checks whether the provide number is positive(>=0) or not.
- Number's logarithm Special cases: log(+0.0) = -infinity log(-0.0) = -infinity log((anything < 0) = NaN log(+infinity) = +infinity log(-infinity) = NaN log(NaN) = NaN
- Gets the higher number
- Truncates a double value
- Gets the lower number
- Parse the string to integer, does not throw exception, return null.
- parse Long value from String
- Rounds a double value to a certain number of digits
- round float value To decimal place
- Ends up being a bit faster than Math#round(float) .
- get Integer Next Power Of Two
- is Integer Power Of Two
- map Exp To Lin
- map Lin To Exp
- calculate Concentration
- lin Regression
- get closest Float from a List of Float
- flip Value In Range
- Constrains an amount between upper and lower bounds, inclusive.
- Performs modulo division using Knuth's floored division algorithm.
- Calculates a mod b in a way that respects negative values (for example, mod(-1, 5) == 4 , rather than -1 ).
- is In Circle
- Returns the smallest integer greater than or equal to the specified float.
- Returns the largest integer less than or equal to the specified float.
- Returns the closest integer to the specified float.
- mult Matrices
- Multiply two matrices by each other and store the result.
- double value divide With Round
- add double value With Round
- multiply double value With Round
- Convert polar coordinates to cartesian coordinates.
- Rotate By Radians
- Rotate To Zero