php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50123 [FR] Arithmetic operators in french manual
Submitted: 2009-11-09 12:20 UTC Modified: 2009-11-30 11:00 UTC
From: polettog at gmail dot com Assigned:
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-11-09 12:20 UTC] polettog at gmail dot com
Description:
------------
http://www.php.net/manual/en/language.operators.arithmetic.php
http://www.php.net/manual/fr/language.operators.arithmetic.php

English :
"The division operator ("/") returns a float value unless the two operands are integers (or strings that get converted to integers) and the numbers are evenly divisible, in which case an integer value will be returned."

French :
"L'op?rateur de division ("/") retourne une valeur enti?re (le r?sultat d'une division enti?re) si les deux op?randes sont entiers (ou bien des cha?nes converties en entier)."

The french version doesn't talk about "evenly divisible numbers", so we can think that the operator really makes integer divisions

15 (int) / 4 (int) = 3 (int)

which is not the case

15 (int) / 4 (int) = 3.75 (float)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-30 11:00 UTC] svn@php.net
Automatic comment from SVN on behalf of yannick
Revision: http://svn.php.net/viewvc/?view=revision&revision=291484
Log: - Sync with EN
- WS
- Fix bug #50123
 [2009-11-30 11:00 UTC] yannick@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-12-30 12:50 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=e65c188da3b383f6552c8a1de1434218a506a465
Log: - Sync with EN - WS - Fix bug #50123
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 06:01:33 2024 UTC