note 129450 added to function.round

From: Date: Wed, 01 May 2024 17:52:21 +0000
Subject: note 129450 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-221313@lists.php.net to get a copy of this message
I'm not sure why the $value parameter is stated to require type (int|float) but if you pass a numeric string to this function, such as "2.23432" it will function without any warnings/notices/errors thrown. Should the documentation and function signature show here to include "string" as a valid type of that parameter? ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.131 (proxied: 2601:248:4a80:7219::3) ---- Manual Page -- https://php.net/manual/en/function.round.php Edit -- https://main.php.net/note/edit/129450 Del: integrated -- https://main.php.net/note/delete/129450/integrated Del: useless -- https://main.php.net/note/delete/129450/useless Del: bad code -- https://main.php.net/note/delete/129450/bad+code Del: spam -- https://main.php.net/note/delete/129450/spam Del: non-english -- https://main.php.net/note/delete/129450/non-english Del: in docs -- https://main.php.net/note/delete/129450/in+docs Del: other reasons-- https://main.php.net/note/delete/129450 Reject -- https://main.php.net/note/reject/129450 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221313) next »