Home | History | Annotate | Download | only in lang

Lines Matching defs:ulp

946      * Returns the argument's ulp (unit in the last place). The size of a ulp of
949 * {@code ulp(-x) == ulp(x)}.
953 * <li>{@code ulp(+0.0) = Double.MIN_VALUE}</li>
954 * <li>{@code ulp(-0.0) = Double.MIN_VALUE}</li>
955 * <li>{@code ulp(+infinity) = infinity}</li>
956 * <li>{@code ulp(-infinity) = infinity}</li>
957 * <li>{@code ulp(NaN) = NaN}</li>
961 * the floating-point value to compute ulp of.
962 * @return the size of a ulp of the argument.
964 public static double ulp(double d) {
976 * Returns the argument's ulp (unit in the last place). The size of a ulp of
979 * {@code ulp(-x) == ulp(x)}.
983 * <li>{@code ulp(+0.0) = Float.MIN_VALUE}</li>
984 * <li>{@code ulp(-0.0) = Float.MIN_VALUE}</li>
985 * <li>{@code ulp(+infinity) = infinity}</li>
986 * <li>{@code ulp(-infinity) = infinity}</li>
987 * <li>{@code ulp(NaN) = NaN}</li>
991 * the floating-point value to compute ulp of.
992 * @return the size of a ulp of the argument.
994 public static float ulp(float f) {
995 return Math.ulp(f);