Created
January 10, 2013 14:33
-
-
Save samdelagarza/4502452 to your computer and use it in GitHub Desktop.
rounding tick size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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