   Very quick question:
  Is (in C++):return Abs(s) <= r;The same as (in C#):  if (Math.Abs(s) <= r)  { return s;  }Thanks   
  No. The first won't compile since there's no Abs() function in C++, but if you meant abs(), then it's still different since the first is a boolean value and the second returns whatever type s is.   ;  Hmmm.Abs() in this case is meant to return the Absolute value so I assumed that Math.Abs() in C# would be the equivalent.So the first one will return true or false depending on whether the absolute value of s is <= r.The second one will return the value of s depending on whether the absolute value of s is <=r.Is that correct?   ;  Yes, that's correct.   ;  Thank you very much!   