def get_decimal_string_operation(
    value: NumberVar, decimals: NumberVar, separator: StringVar
):
    """Get the decimal string of the number.

    Args:
        value: The number.
        decimals: The number of decimals.
        separator: The separator.

    Returns:
        The decimal string of the number.
    """
    return var_operation_return(
        js_expression=f"({value}.toLocaleString('en-US', ((decimals) => ({{minimumFractionDigits: decimals, maximumFractionDigits: decimals}}))({decimals})).replaceAll(',', {separator}))",
        var_type=str,
    )
Get the decimal string of the number.

    Args:
        value: The number.
        decimals: The number of decimals.
        separator: The separator.

    Returns:
        The decimal string of the number.
    
reflex/vars/sequence.py