Starboard Module Reference: double.h

Provides double-precision floating point helper functions.

Functions

SbDoubleAbsolute

Description

Returns the absolute value of the given double-precision floating-point number d, preserving NaN and infinity.

Declaration and definitions

SB_EXPORT double SbDoubleAbsolute(const double d);

#include "starboard/double.h"

double SbDoubleAbsolute(double /*d*/) {
  return 0.0;
}

Parameters

Parameters
const double
d
The number to be adjusted.

SbDoubleExponent

Description

Returns base taken to the power of exponent.

Declaration and definitions

SB_EXPORT double SbDoubleExponent(const double base, const double exponent);

#include "starboard/double.h"

double SbDoubleExponent(const double /*base*/, const double /*exponent*/) {
  return 0.0;
}

Parameters

Parameters
const double
base
The number to be adjusted.
const double
exponent
The power to which the base number should be raised.

SbDoubleFloor

Description

Floors double-precision floating-point number d to the nearest integer.

Declaration and definitions

SB_EXPORT double SbDoubleFloor(const double d);

#include "starboard/double.h"

double SbDoubleFloor(double /*d*/) {
  return 0.0;
}

Parameters

Parameters
const double
d
The number to be floored.

SbDoubleIsFinite

Description

Determines whether double-precision floating-point number d represents a finite number.

Declaration and definitions

SB_EXPORT bool SbDoubleIsFinite(const double d);

#include "starboard/double.h"

bool SbDoubleIsFinite(const double /*d*/) {
  return false;
}

Parameters

Parameters
const double
d
The number to be evaluated.

SbDoubleIsNan

Description

Determines whether double-precision floating-point number d represents "Not a Number."

Declaration and definitions

SB_EXPORT bool SbDoubleIsNan(const double d);

#include "starboard/double.h"

bool SbDoubleIsNan(const double /*d*/) {
  return false;
}

Parameters

Parameters
const double
d
The number to be evaluated.