easy-to-read numbers

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
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.
User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

easy-to-read numbers

Post by Meis2M »

Hello
what is your idea about round to 2 decimal numbers or add currency with commas.

Specially in post numbers , topic numbers , user numbers ...

User avatar
david63
Registered User
Posts: 355
Joined: Mon Feb 07, 2005 7:23 am

Re: easy-to-read numbers

Post by david63 »

Meis2M wrote: Sun Jan 07, 2018 3:04 pm Hello
what is your idea about round to 2 decimal 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
Meis2M wrote: Sun Jan 07, 2018 3:04 pm post numbers , topic numbers , user numbers
Meis2M wrote: Sun Jan 07, 2018 3:04 pm add currency with commas.
That would be country specfic
David
Remember: You only know what you know -
and you do not know what you do not know!

User avatar
canonknipser
Registered User
Posts: 71
Joined: Mon Sep 19, 2011 4:42 am
Location: Germany

Re: easy-to-read numbers

Post by canonknipser »

On huge numbers, you have formatting in "real live". In german, we put a dot as a thousands delimiter, eg 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

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 185
Joined: Thu Sep 09, 2010 11:36 am
Location: Munich, Germany

Re: easy-to-read numbers

Post by Marc »

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:

Code: Select all

1 000 000
Not to be confused with an actual space

Code: Select all

1 000 000

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: easy-to-read numbers

Post by Meis2M »

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 :D

see:
2.PNG
1.PNG

User avatar
canonknipser
Registered User
Posts: 71
Joined: Mon Sep 19, 2011 4:42 am
Location: Germany

Re: easy-to-read numbers

Post by canonknipser »

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 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.php
Greetings
Frank
phpbb.de support team member - no support via PM or mail
English is not my native language
Extensions and scripts for phpBB

User avatar
Dog Cow
Registered User
Posts: 271
Joined: Wed May 25, 2005 2:14 pm

Re: easy-to-read numbers

Post by Dog Cow »

Marc wrote: Fri Jan 12, 2018 8:57 pm As you already spotted, there are different customs when it comes to what characters is being used as delimiter.
Just as there are different customs for which languages people speak. If phpBB has language translations, why not have separator translations too?

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: easy-to-read numbers

Post by 3Di »

Dog Cow wrote: Tue Jan 16, 2018 3:46 pm
Marc wrote: Fri Jan 12, 2018 8:57 pm As you already spotted, there are different customs when it comes to what characters is being used as delimiter.
Just as there are different customs for which languages people speak. If phpBB has language translations, why not have separator translations too?
Marc wrote: Fri Jan 12, 2018 8:57 pm instead of adding this extra complexitiy to e.g. language variables.
🆓 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

User avatar
hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 968
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Re: easy-to-read numbers

Post by hanakin »

well either currently we do nothing ie 16686 for the chit chat forum is very difficult to read.
Donations welcome via Paypal Image

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: easy-to-read numbers

Post by Meis2M »

up this topic to suggest add in the core.

Post Reply