JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
made format_int() fail for 1.0 -> 10
authorJason Woofenden <jason@jasonwoof.com>
Mon, 29 Mar 2010 19:16:58 +0000 (15:16 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Mon, 29 Mar 2010 19:17:11 +0000 (15:17 -0400)
commit86e64d13d96d22ed84ebf9938e2744a33af77005
treeb85023f1879134ce187d9e54c73ecc4f659306ad
parentd0e10623d1c7660c216a1bc5a1050b4507ff560f
made format_int() fail for 1.0 -> 10

format_int() and friends strip all not-numeric characters. This leads to
unexpected results when the user enters something with a decimal point.

ie 1.0 -> 10,  12.5 -> 125, etc
unit_tests/format.php