Forum Moderators: coopster
Sorry - much searching, but I'm stuck for *what* to search for.
I have a negative float value, and if it's negative I need to turn it into a positive, eg:-
-2.36
.....and I need 2.36 as the result.
Is there a simple function for losing the sign, mathematically?
If not, would a simple:-
if (MyFloat < 0) {strip leading "-"};
cause any problems that you can foresee?
Thanks!
TJ