Skip to content

Instantly share code, notes, and snippets.

@wess
Created August 20, 2015 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wess/758e55f5dbff60a5ca32 to your computer and use it in GitHub Desktop.
Save wess/758e55f5dbff60a5ca32 to your computer and use it in GitHub Desktop.
- (float) productOfA: (const float) a b: (const char) b {
if (b > 0)
return a;
if (b < 0)
return -a;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment