Skip to content

Automatically convert python decimal to System.Decimal #1775

Description

@sensokame

Environment

  • Pythonnet version: 3.0.0a2
  • Python version: 3.10.4
  • Operating System: Windows
  • .NET Runtime: 5.0.1

Details

  • use a method with decimal parameter from python. pass a python decimal to the parameter. an exception would raise (Cannot Convert from decimal to System.Decimal)
  • It would be nice to automatically convert between python decimal and system decimal (it would be nice to automatically convert between python numbers to system decimal as well, but starting with python decimal is enough)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions