Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/09/2005, 14:25
Avatar de Eternal Idol
Eternal Idol
 
Fecha de Ingreso: mayo-2004
Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años
Puntos: 74
Ejemplo extraido de la MSDN:

Código:
// crt_fmod.c
/* This program displays a floating-point remainder.
 */

#include <math.h>
#include <stdio.h>

int main( void )
{
   double w = -10.0, x = 3.0, z;

   z = fmod( w, x );
   printf( "The remainder of %.2f / %.2f is %f\n", w, x, z );
}
__________________
¡Peron cumple, Evita dignifica! VIVA PERON CARAJO