Function

GLib-2.0GLibunichar_digit_value

  • Determines the numeric value of a character as a decimal digit.

    Parameters

    • c: string

      a Unicode character

    Returns number

    If c is a decimal digit (according to g_unichar_isdigit()), its numeric value. Otherwise, -1.