|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2017-04-12 20:15 UTC] requinix@php.net
 
-Summary: Round function sometimes return no float values
+Summary: Round function returns false for non-numeric argument
-Status:  Open
+Status:  Analyzed
  [2017-04-12 20:15 UTC] requinix@php.net
  [2017-04-12 20:20 UTC] jose dot carlos dot garcia dot 95 at gmail dot com
  [2017-04-14 09:18 UTC] cmb@php.net
  [2017-04-17 08:44 UTC] jose dot carlos dot garcia dot 95 at gmail dot com
  [2019-10-30 23:07 UTC] puggan at sundragon dot se
  [2019-10-31 10:19 UTC] nikic@php.net
 
-Status:      Analyzed
+Status:      Closed
-Assigned To:
+Assigned To: nikic
  [2019-10-31 10:19 UTC] nikic@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Sun Oct 26 23:00:02 2025 UTC | 
Description: ------------ In round documentation specified that round everytime return a float value, but if I put an array as argument, round will return a boolean value. Test script: --------------- <?php $valores = [ array(), array("test" => "hola") ]; foreach($valores as $valor) { echo var_dump(round($valor)); } Expected result: ---------------- A float value, or maybe a change in round function that reports when a type is invalid.