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.
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.
Jump to PostTry the
Abs()
function.
Jump to PostAlthough this code snippet is in VB.NET, am sure it will guide you to a solution.
Try the Abs()
function.
thanks pritaeas
Can you also help me with this
TEXT will not accept the number zero and negative numbers.
Use Abs(1)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.