layout: doc title: “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

#include "starboard/double.h"

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

Parameters

SbDoubleExponent

Description

Returns base taken to the power of exponent.

Declaration and definitions

#include "starboard/double.h"

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

Parameters

SbDoubleFloor

Description

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

Declaration and definitions

#include "starboard/double.h"

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

Parameters

SbDoubleIsFinite

Description

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

Declaration and definitions

#include "starboard/double.h"

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

Parameters

SbDoubleIsNan

Description

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

Declaration and definitions

#include "starboard/double.h"

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

Parameters