Search
 
SCRIPT & CODE EXAMPLE
 

PHP

floor ceil php

echo(floor(0.60) . "<br>"); // 0
echo(floor(0.40) . "<br>"); // 0
echo(floor(5) . "<br>"); // 5
echo(floor(5.1) . "<br>"); //5
echo(floor(-5.1) . "<br>"); // -6
echo(floor(-5.9)); // -6

echo(ceil(0.60) . "<br>"); // 1
echo(ceil(0.40) . "<br>"); // 1
echo(ceil(5) . "<br>"); // 5
echo(ceil(5.1) . "<br>"); // 6
echo(ceil(-5.1) . "<br>"); // -5
echo(ceil(-5.9)); // -5
Comment

PREVIOUS NEXT
Code Example
Php :: how to get previous month in php 
Php :: carbon add few hours 
Php :: diff for seconds laravel carbon 
Php :: php index of last element in array 
Php :: Laravel Validation check array size min and max 
Php :: include and require in php 
Php :: file_put_contents php json file 
Php :: drupal 8 date formater service 
Php :: composer cache clean 
Php :: calculate string php 
Php :: laravel get file contents from storage 
Php :: LaravelSocialiteTwoInvalidStateException 
Php :: laravel required only one of multiple fields not both 
Php :: get categories wordpress query 
Php :: php bubble sort 
Php :: laravel env asset_url 
Php :: how to get the current year in php 
Php :: tipo de conexiones a la base de datos en php 
Php :: faker 
Php :: cache clear in laravel 
Php :: num_rows in php 
Php :: add acf options page 
Php :: object values to array php 
Php :: add foreign key column laravel 5.8 
Php :: php 8 attributes 
Php :: artisan commands in route 
Php :: factory laravel tinker 
Php :: interface x trait in php 
Php :: send mail test from laravel 
Php :: laravel find by 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =