On the value of ceil and floor

how is the ceiling and floor valued?
PHP function

ceil("9.0000000000000001")9
ceil("9.000000000000001")10

floor("-9.0000000000000001")-9
floor("-9.000000000000001")-10

Why is this happening? Does it matter how many places after the decimal point?

Php
Jan.20,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e18c-2b12b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e18c-2b12b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?