Welcome To Snipplr


Everyone's Recent Snippets Tagged number



1 2 3 4 Next »
what more can i say?! Just a small Regular expression...
1 1137 posted 17 years ago by FlashJunior
Convert a number to a different base.
0 1194 posted 17 years ago by wizard04
Adds commas to numbers. 1234567 becomes 1,234,567
1 1470 posted 17 years ago by jdstraughan
A simple method of validating a telephone number using regular expressions and PHP
3 2117 posted 17 years ago by aristoworks
Convert an number to a position / ranking. 1 becomes 1st, 2 becomes 2nd, etc...
2 1632 posted 17 years ago by distinctdev
0 1257 posted 17 years ago by f0vela
Large factorials are easy to do in LISP, although a number above (2000!) may crash it. I designed this because of an online post from a mathematician talking about the number 1000! . Code like this is difficult to write in C-like languages, but a s...
0 2992 posted 17 years ago by darkphotn
How to check if a number is odd or even in PHP. Could also use the MOD (%) function, but apparently this method is better performance-wise.
12 2432 posted 17 years ago by andyhartleeds
1 1328 posted 18 years ago by gdonald
1 1489 posted 18 years ago by gdonald
1 1606 posted 18 years ago by gdonald
This will return a random number between two given numbers.
4 1195 posted 19 years ago by ypmits
1 2 3 4 Next »