Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.abs
.acos
.acosh
.asin
.asinh
.atan2
.atan
.atanh
.base convert
.bindec
.ceil
.cos
.cosh
.decbin
.dechex
.decoct
.deg2rad
.exp
.expm1
.floor
.fmod
.getrandmax
.hexdec
.hypot
.is finite
.is infinite
.is nan
.lcg value
.log10
.log1p
.log
.max
.min
.mt getrandmax
.mt rand
.mt srand
.octdec
.pi
.pow
.rad2deg
.rand
.round
.sin
.sinh
.sqrt
.srand
.tan
.tanh
 
   

  ceil  


ceil

(PHP 3, PHP 4, PHP 5)

ceil -- Arrondit au nombre supérieur

Description

float ceil ( float value )

ceil() retourne l'entier supérieur du nombre value. Utiliser ceil() sur un entier ne sert à rien. La valeur retournée est un nombre à virgule flottante (float), car ces nombres peuvent être plus grands que les entiers.

Exemple 1. Exemple avec ceil()

<?php
echo ceil(4.3);    // 5
echo ceil(9.999);  // 10
echo ceil(-3.14);  // -3
?>

Voir aussi floor() et round().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.