def _GetFloatStringPrecision(floatString):
    """
    Gets the floating point precision specified by floatString.

    floatString can either contain an actual float in string form, or it can be
    a frame placeholder. We simply split the string on the dot (.) and return
    the length of the part after the dot, if any.

    If there is no dot in the string, a precision of zero is assumed.
    """
    floatPrecision = 0

    if not floatString:
        return floatPrecision

    floatStringParts = floatString.split('.')
    if len(floatStringParts) > 1:
        floatPrecision = len(floatStringParts[1])

    return floatPrecision