Welcome To Snipplr
Everyone's Recent Snippets Tagged math
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Using SQL you can have your database return the distance between 2 sets of Lat and Long points, and using some math functions also take into account the curvature of the earth.
3
1170
posted 14 years ago by zingo
`\mathbf` does not put operators and greek characters in bold face. This macro does.
1
953
posted 15 years ago by deepsoul
Found this in some code I've been maintaining/expanding. Quite clever.
Picture an array of bytes in binary
00000111 11100000 00000000 00000000
Now picture an Int32 in Binary
00000000000000000000000000000000
To grab a Little Endian I...
0
1733
posted 15 years ago by rengber
Usage:
formatDecimals(3.1415926, 3);
returns: 3.141.
Also adds zeros to end if needed.
0
666
posted 15 years ago by Mijos
see website for all information about that.
some more theory:
[color-scaling-function](http://stackoverflow.com/questions/168838/color-scaling-function)
[generate-color-for-a-power-meter-red-to-green](http://stackoverflow.com/questions/340209/gene...
0
1079
posted 15 years ago by localhorst
英語ã®ã‚¿ã‚¤ãƒˆãƒ«ãŒé©å½“ãªè‹±è¨³ãªã®ã§ã€èª°ã‹OK/NGã‚’æ•™ãˆã¦ãã ã•ã„。
1
944
posted 16 years ago by octech