[Python] How to check change between two values (in percent)?

Discussão em 'Python' iniciado por Stack, Julho 4, 2025.

  1. Stack

    Stack Membro Participativo

    I have two values (previous and current) and I want to check change between them (in percent):

    (current/previous)*100


    But if the previous value is 0 I get Division By Zero, and if value will not change I get 100%.

    Continue reading...

Compartilhe esta Página