code: public static float getFraction(@NonNull final Context context, @AttrRes final int resourceId,
                                      final int base, final int pbase) {
          return getFraction(context, -1, resourceId, base, pbase);
      }
docs: Obtains the fraction, which corresponds to a specific resource id, from a context's theme. If
  the given resource id is invalid, a {@link NotFoundException} will be thrown.
  
  @param context
  The context, which should be used, as an instance of the class {@link Context}. The
  context may not be null
  @param resourceId
  The resource id of the attribute, which should be obtained, as an {@link Integer}
  value. The resource id must corresponds to a valid theme attribute
  @param base
  The base value of this fraction as an {@link Integer} value. A standard fraction is
  multiplied by this value
  @param pbase
  The parent base value of this fraction as an {@link Integer} value. A parent fraction
  (nn%p) is multiplied by this value
  @return The fraction, which has been obtained, as a {@link Float} value