I have a question for Computer Science 101. Unit 5 , 5.3 The 'Switch' Statement, Central Connecticut University - Chapter 43.
If-Else Absolute Value
here is the following statement I am having problems with
double value = -34.569;
abs = (value < 0) ? -value : value;
Question: why is +34.569 assigned to abs, and not -34.569?