easy-to-read numbers

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.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.
Post Reply
User avatar
Meis2M
Registered User
Posts: 417
Joined: Fri Apr 23, 2010 10:18 am
Contact:

easy-to-read numbers

Post by Meis2M » Sun Jan 07, 2018 3:04 pm

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: 218
Joined: Mon Feb 07, 2005 7:23 am
Location: Lancashire, UK

Re: easy-to-read numbers

Post by david63 » Sun Jan 07, 2018 9:42 pm

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: 65
Joined: Mon Sep 19, 2011 4:42 am
Location: Germany

Re: easy-to-read numbers

Post by canonknipser » Thu Jan 11, 2018 8:59 pm

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: 129
Joined: Thu Sep 09, 2010 11:36 am
Location: Munich, Germany

Re: easy-to-read numbers

Post by Marc » 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. 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: 417
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: easy-to-read numbers

Post by Meis2M » Fri Jan 12, 2018 9:30 pm

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: 65
Joined: Mon Sep 19, 2011 4:42 am
Location: Germany

Re: easy-to-read numbers

Post by canonknipser » Sat Jan 13, 2018 10:56 pm

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 » 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?

User avatar
3Di
Registered User
Posts: 699
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: easy-to-read numbers

Post by 3Di » Tue Jan 16, 2018 7:42 pm

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.
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

User avatar
hanakin
Infrastructure Team
Infrastructure Team
Posts: 799
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Re: easy-to-read numbers

Post by hanakin » Thu Jan 18, 2018 2:22 pm

well either currently we do nothing ie 16686 for the chit chat forum is very difficult to read.

Post Reply