import re

# Compiled pattern matching decimal numbers
DECIMAL_NUMBER_PATTERN = re.compile(r"[+-]?((\.\d+)|(\d+\.?\d*))")

def isDigit(string: str) -> bool:
    return DECIMAL_NUMBER_PATTERN.fullmatch(string) != None

import re

# Compiled pattern matching decimal numbers
DECIMAL_NUMBER_PATTERN = re.compile(r"[+-]?((\.\d+)|(\d+\.?\d*))")

def isDigit(string: str) -> bool:
    return DECIMAL_NUMBER_PATTERN.fullmatch(string) != None

# Compiled pattern matching decimal numbers