Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Formatting numerical display

Formatting numerical display

Put your problem here if it does not fit any of the other categories.

Formatting numerical display

Postby slebed » Sun Jul 26, 2009 12:32 am

I'm can't seem to figure out how to create a string from numeric input in the format of "##.##"

I'd like to have a leading zero for single digits and two decimal places.

Does what I'm asking for make sense? I've looked into Formatter, but I'm constantly erroring out with out, and I'm not sure that it won't gc() ever time its called.

Thanks in advance!
slebed
Freshman
Freshman
 
Posts: 9
Joined: Sat Jul 11, 2009 10:22 pm

Top

try this

Postby ccd » Sun Jul 26, 2009 9:19 am

ccd
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Jul 26, 2009 9:18 am

Postby slebed » Sun Jul 26, 2009 6:42 pm

Thanks! That really helped me out. That link was much more concise than the Sun docs.
slebed
Freshman
Freshman
 
Posts: 9
Joined: Sat Jul 11, 2009 10:22 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 15 guests