Skip to content

Instantly share code, notes, and snippets.

@samdelagarza
Created January 10, 2013 14:33
Show Gist options
  • Save samdelagarza/4502452 to your computer and use it in GitHub Desktop.
Save samdelagarza/4502452 to your computer and use it in GitHub Desktop.
rounding tick size
price - price % TickSize + ((price % TickSize < TickSize / 2) ? 0.0 : TickSize);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment