Percentage calculation

How can I calculate the difference as a percentage of two different numbers in the block section? (For example, a product that costs 10 usd becomes 12 usd. I want to show the difference as a percentage.)

As far I understand you

Price increased = 2$
Older Price = 10$
New Price = 12$

Price increases by % = 2 × 100/10 = 20% (In respective for older price).

Price increases by % = 2 × 100/12 = 16.66% (In respective for new price).

I hope now you can convert it in blocks.

4 Likes

Something like this

4 Likes

You should really learn some basics before asking questions here. There are many good sources for this, including and in particular: https://puravidaapps.com/

3 Likes

thank you i keep learning

1 Like

what can i do to get it reflected on label1 when a button is clicked

Set button1.click set label1.text to call procedure

image

I got error. First number is beginner level, second number is current level
hata

First value contains $ sign so it is not concidered a number

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.