[Python] Which way is faster way to create Decimal?

Discussão em 'Python' iniciado por Stack, Setembro 2, 2025.

  1. Stack

    Stack Membro Participativo

    Which way is faster to create Decimal - from float or from string?

    Decimal(1.2)


    vs

    Decimal('1.2')


    How does the difference in speed of the to cases?

    Continue reading...

Compartilhe esta Página