I am trying to figure out how to essentially create a “floor” call based on a specific decimal place as opposed to a whole value. Below is a table of actual values and the desired result:
=========|=========
3.125 | 3.12
4.187 | 4.18
1.212 | 1.21
5.999 | 5.99
Is this possible with mysql? using the round function to the 2nd decimal place returns “bad” data and rounding to the third does not reach the goal either.
Use the TRUNCATE function:
Output: