I want to drop off decimals without rounding up. For example if I have 1.505, I want to drop last decimal and value should be 1.50. Is there such a function in PHP?
you can convert 1.505 to String data type and make use of substring() to truncate last character. And again convert it in integer.
1.505
substring()
integer