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
 
   

  fmod  


fmod

(PHP 4 >= 4.2.0, PHP 5)

fmod --  Retourne le reste de la division

Description

float fmod ( float x, float y )

fmod retourne le reste de la division de (x) par (y). Ce reste est un nombre à virgule flottante. Le reste est défini par : x = i * y + r, pour un entier i. Si y n'est pas nul, r a le même signe que x est une taille inférieure à y.

Exemple 1. Exemple avec fmod()

<?php
$x
= 5.7;
$y = 1.3;
$r = fmod($x, $y);
// $r égale 0.5, car 4 * 1.3 + 0.5 = 5.7
?>


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.