#ifndef STAN__MATH__PRIM__SCAL__FUN__ABS_HPP
#define STAN__MATH__PRIM__SCAL__FUN__ABS_HPP

#include <cmath>

namespace stan {

  namespace math {

    /**
     * Return floating-point absolute value.
     *
     * Delegates to <code>fabs(double)</code> rather than
     * <code>std::abs(int)</code>.
     *
     * @param x scalar
     * @return absolute value of scalar
     */
    double abs(double x) {
      return std::fabs(x);
    }

  }
}

#endif
