Function That Takes A Double

This function is an exercise in terrible coding practices.

It takes a double as input, because that's just what the world needs.

Maybe it will work for you, maybe it won't.

Function:

    
function takesADouble(double input) {
  return input * 2;
}

  

Example Use Cases:

Side Effects:

  1. May cause the function call stack to overflow.
  2. May result in a segmentation fault.
  3. Is generally just a bad idea.

Don't say we didn't warn you.

Back to the main page