• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

quick vb question

markjrubin

Golden Member
I'm working on a calculator for class and I'm a little stuck on the +/- button (turn number to negative if positive, turn to positive if negative). Is there a numerical function to do this or will I have to do it with string manipulation?

Mark
 
Don't use a string, keep it numeric. I would make a little function that takes the value and doubles it and then subtracts it from it self. And then vise versa
 
Back
Top