Jump to content

[SOLVED] rounding down?


sk121506

Recommended Posts

is there a way to round down the nearest tenth such as...

 

138 becomes 130

 

i know round(134, -1) would give me 130, but anything like 139 rounded to 130?

 

I dont know how you can use floor on this ???

Link to comment
https://forums.phpfreaks.com/topic/87478-solved-rounding-down/#findComment-447487
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.