Zilog ZUSBOPTS Manual de usuario Pagina 452

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 520
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 451
Standard Functions UM017105-0511
424
Zilog Developer Studio II – ZNEO™
User Manual
Example
double x=1.235
int exp=2;
double y;
y=ldexp(x,exp);
ldiv
Computes the quotient and remainder of the division of the numerator numer by the
denominator
denom. If the division is inexact, the sign of the quotient is that of the
mathematical quotient, and the magnitude of the quotient is the largest integer less than
the magnitude of the mathematical quotient.
Synopsis
#include <stdlib.h>
ldiv_t ldiv(long numer, long denom);
Example
long x=25000;
long y=300;
ldiv_t t;
long q;
long r;
t=ldiv(x,y);
q=t.quot;
r=t.rem;
log, logf
Computes the natural logarithm of x. A domain error occurs if the argument is negative. A
range error occurs if the argument is zero.
Synopsis
#include <math.h>
double log(double x);
float logf(float x);
Returns
The natural logarithm.
Vista de pagina 451
1 2 ... 447 448 449 450 451 452 453 454 455 456 457 ... 519 520

Comentarios a estos manuales

Sin comentarios