Skip to content

Instantly share code, notes, and snippets.

@Ipanov7
Created November 5, 2022 18:01
Show Gist options
  • Save Ipanov7/779bded82747db0fc4ea5b9543ed018e to your computer and use it in GitHub Desktop.
Save Ipanov7/779bded82747db0fc4ea5b9543ed018e to your computer and use it in GitHub Desktop.
func computePips(currentRate float64, averageRate float64) int {
return int((currentRate - averageRate) * 10000)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment