How To Sort Text as a Number in MySQL

Author: , July 11th, 2013

select theField from theTable order by theField+0; ~OR~ select theField from theTable order by CAST(theField AS UNSIGNED);

How To Round And Format Numbers In JavaScript

Author: , September 23rd, 2012

How To Format Numbers Using PHP Or Smarty

Author: , December 1st, 2011

PHP number_format($number, 2, ‘.’, ‘,’); SMARTY {$number|number_format:2:”.”:”,”}

How To Determine If A String Is An Integer In Perl

Author: , October 28th, 2011

This solution is hyper-simplistic, and does not deal with decimals or real numbers (those with either a – or a + in front of them)…

How To Format The Number Of Decimal Places In Perl

Author: , October 10th, 2011

Outputs: 123.450

How To Round Up A Number In Perl

Author: , October 10th, 2011

To round up to the nearest 5:

http://search.cpan.org/dist/Math-Round/Round.pm To round up to the nearest 1: Cross-posted from PerlMonks: