Hello
what is your idea about round to 2 decimal numbers or add currency with commas.
Specially in post numbers , topic numbers , user numbers ...
easy-to-read numbers
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Re: easy-to-read numbers
I don't understand what it is you are asking - please elaborate, because as far as I can recall there are no "decimal numbers" in
That would be country specfic
David
Remember: You only know what you know -
and you do not know what you do not know!
Remember: You only know what you know -
and you do not know what you do not know!
- canonknipser
- Registered User
- Posts: 71
- Joined: Mon Sep 19, 2011 4:42 am
- Location: Germany
Re: easy-to-read numbers
On huge numbers, you have formatting in "real live". In german, we put a dot as a thousands delimiter, eg
Makes big numbers more human readable.
1000000
(a million) can easier be read when formatted 1.000.000
. If I remember correctly in american (and maybe british also) english it is done with a comma in between -> 1,000,000
Makes big numbers more human readable.
Greetings
Frank
phpbb.de support team member - no support via PM or mail
English is not my native language
Extensions and scripts for phpBB
Frank
phpbb.de support team member - no support via PM or mail
English is not my native language
Extensions and scripts for phpBB
Re: easy-to-read numbers
As you already spotted, there are different customs when it comes to what characters is being used as delimiter. Using the recommend unicode "thin space" should be used instead of adding this extra complexitiy to e.g. language variables.
Result:
Not to be confused with an actual space
Result:
Code: Select all
1 000 000
Code: Select all
1 000 000
Re: easy-to-read numbers
What you think about round it ?
1000 be 1K
1200 be 1.2K
or 123456 be 123,456
2208967 be 2,208,967 it is poat number of "phpBB2 Forums Archive" phpbb.com
see:
1000 be 1K
1200 be 1.2K
or 123456 be 123,456
2208967 be 2,208,967 it is poat number of "phpBB2 Forums Archive" phpbb.com
see:
- canonknipser
- Registered User
- Posts: 71
- Joined: Mon Sep 19, 2011 4:42 am
- Location: Germany
Re: easy-to-read numbers
Just re-read a topic on the german support board. Should be a mostly simple change, as in most cases there are only integers to display: https://www.phpbb.de/community/viewtopi ... 8#p1375107
And using the four parameter
And using the four parameter
number_format
function you can set a decimal delimiter and a thousands delimiter via language files (L_DECIMAL and L_THOUSANDS like L_COLON) -> http://php.net/manual/en/function.number-format.phpGreetings
Frank
phpbb.de support team member - no support via PM or mail
English is not my native language
Extensions and scripts for phpBB
Frank
phpbb.de support team member - no support via PM or mail
English is not my native language
Extensions and scripts for phpBB
- 3Di
- Registered User
- Posts: 951
- Joined: Tue Nov 01, 2005 9:50 pm
- Location: Milano 🇮🇹 Frankfurt 🇩🇪
- Contact:
Re: easy-to-read numbers
Free support for our extensions also provided here: phpBB Studio
Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Re: easy-to-read numbers
well either currently we do nothing ie 16686 for the chit chat forum is very difficult to read.