Zum Hauptinhalt gehen

Suche

how do you calculate a numbers %?

  • Nemma88

    If there s no short hand there's always the school math.

  • Nemma88

    Pressed post a little early -i mean in this case

    35 ÷ 100=Z
    Z x 50= what you want.

    But this would be a number output not a %. Would have to then run through something else with a % output.

  • skillphiliac

    Yes, just take the school math. All you really have to remember is to shift the percentage by two decimals. That's literally what it is: number/100.

    So 40% = 0.4

    You take your value, multiply it by 0.4, bam, that's 40%. 100% of something is multiplying it by 1.

    If you want to make it a bit more readable to your taste, have a slider giving you a value in percent and then divide by a hundred before multiplying with your main value. Other than that, you should be set with this.

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.