Skip to content

Suggestion: Transform SingleValue to float #10

Description

@carlos-adir

Create a way to transform SingleValue into a number.

The standard way is to direct access from the internal of it

class SingleValue:
    ...
    def __float__(self):
        return float(self.internal)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions