1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/10345] Document behaviour for floating numbers on phpbb_get_plural_form

The numbers are floored by casting to int.

PHPBB3-10345
This commit is contained in:
Joas Schilling
2011-11-30 21:07:53 +01:00
parent b195fce0a4
commit dd99675f72
2 changed files with 2 additions and 2 deletions

View File

@@ -1914,7 +1914,7 @@ class user extends session
* Determine which plural form we should use.
* For some languages this is not as simple as for English.
*
* @param $number int|float The number we want to get the plural case for
* @param $number int|float The number we want to get the plural case for. Float numbers are floored.
* @param $force_rule mixed False to use the plural rule of the language package
* or an integer to force a certain plural rule
* @return int The plural-case we need to use for the number plural-rule combination