for example: 8 - 9 = -1
i want it to be : 8 - 9 = 1

i want to subtract a lower number from a higher number and the result will be a positive number and it will display on a Label.

Recommended Answers

Try the Abs() function.

Jump to Post

Although this code snippet is in VB.NET, am sure it will guide you to a solution.

Jump to Post

All 5 Replies

Try the Abs() function.

commented: as simple as that +13

thanks pritaeas

Can you also help me with this

TEXT will not accept the number zero and negative numbers.

Although this code snippet is in VB.NET, am sure it will guide you to a solution.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.