Php - floor with decimals number bugging normal number : I have that line of code:

    $ammount = floor($ammount*100000000) / 100000000;

I want to have number with 8 decimals but with this code above i get, right 8 decimals but before point my number is lower than it could be.

If i putted that number:

"111" it switched to "1.00000000"

i used this code too:

    $ammount = number_format($ammount, 8);
But i want too number to be round to lower value

For example: 

1.000000009 -> 1.00000000

1.003000001 -> 1.00300000