in the following case:
in query:
20+80+90 (we all know gives 190) / divided by 25 (we all can calculate and gives 7.6)
in the case of setting every column on phpmyadmin to decimal 5,2 and trying to perform a query in wich case can this happen? (give a result of 7.0) instead of 7.6, tried both eloquent | normal query| and created view, all the querys
gave 7.0 instead of 7.6 , what am i doing wrong???
i tried also making query with convert option to decimal too
Like its counterpart floor, ceiling is a mathematical operation that takes a number and rounds it up to the nearest integer. For example, the ceiling of 5 is 5, and so is the ceiling of 4.1.
SQL uses the CEILING function to perform this computation on Myaccountaccess. It takes a single argument: the column whose values you’d like to round up to the nearest integer.
In our example, we’d like to calculate how many square meters (rounded up to the nearest integer) there are per one bike. In our example, we used CEILING like so: CEILING(area/bikes_for_rent)). This returns an integer result, not a float.