[Python] How to return the fractional part of a number? [closed]

Discussão em 'Python' iniciado por Stack, Fevereiro 7, 2025.

  1. Stack

    Stack Membro Participativo

    How can I get the fractional part of a number?

    For example, I have a list of floats num = [12.73, 9.45] and want to get only the numbers after the decimal point, 73 and 45 in this case. How do I go about doing this?

    Continue reading...

Compartilhe esta Página