Skip to content

to_str() raises TypeError due to float input in np.base_repr() #153

@mohammadp1001

Description

@mohammadp1001

Description:

I encountered a TypeError when calling to_str(f: float). The issue occurs because np.base_repr() expects an integer, but the function passes a floating-point number.

Steps to Reproduce:

serializer = NumericSerializer()
print(serializer.to_str(2.5))  # Raises TypeError

Error Message:

TypeError: string indices must be integers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions