Skip to content

Instantly share code, notes, and snippets.

@rnewman
Created May 8, 2015 22:59
Show Gist options
  • Select an option

  • Save rnewman/1bec014fe15c9ff8a34b to your computer and use it in GitHub Desktop.

Select an option

Save rnewman/1bec014fe15c9ff8a34b to your computer and use it in GitHub Desktop.
Visit on Mon Apr 27 02:08:20 PDT 2015
sqlite> select (3 * MAX(1, 100 * 225 / (((1431125701897 - 1430125700000) / 86400000) * ((1430125701897 - 1431125700000) / 86400000) + 225))) as bar from none;
bar
----------
648
sqlite> select (3 * MAX(1, 100 * 225 / (((1431125701897 - 1430125700000) / 86400000.0) * ((1430125701897 - 1431125700000) / 86400000.0) + 225))) as bar from none;
bar
----------------
741.425746299869
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment