Welcome Guest, Not a member yet? Register   Sign In
Number Helper
#7

[eluser]barbazul[/eluser]
without doing much thinking, the firsts that come to my mind (all of which I had to implement myself at some point):

* number to string conversions (like 4 to 'four', 19 to 'nineteen', etc),
* number 'types' conversions (like decimal, hex, roman, etc)
* money formatting (i don't know what else to call this)
* color parsing (i have worked on image manipulation many times and I had to do this on almost every case. I get a string like #FFFF00 and have to extract it into array('r'=>255,'g'=>255,'b'=>0) and that kind of thing)
* number padding
* large numbers comparison (PHP sucks when you have to work with really big numbers)

this are really small simple algorithms that I had to reproduce every time I needed them (not always in code igniter) and all of them could fit into a "number" helper.

Anyways, this is not really THAT necessary.... just following walesmd line of thought


Messages In This Thread
Number Helper - by El Forum - 10-06-2007, 01:38 AM
Number Helper - by El Forum - 10-06-2007, 07:08 AM
Number Helper - by El Forum - 10-06-2007, 01:08 PM
Number Helper - by El Forum - 10-06-2007, 03:50 PM
Number Helper - by El Forum - 10-06-2007, 04:10 PM
Number Helper - by El Forum - 10-07-2007, 08:43 AM
Number Helper - by El Forum - 10-07-2007, 01:13 PM
Number Helper - by El Forum - 10-07-2007, 01:29 PM
Number Helper - by El Forum - 10-07-2007, 02:56 PM
Number Helper - by El Forum - 10-07-2007, 05:33 PM
Number Helper - by El Forum - 12-16-2007, 11:51 AM
Number Helper - by El Forum - 12-16-2007, 06:49 PM
Number Helper - by El Forum - 12-16-2007, 10:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB