| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/pythran/pythonic/include/types/ |
Upload File : |
#ifndef PYTHONIC_INCLUDE_TYPES_FLOAT_HPP
#define PYTHONIC_INCLUDE_TYPES_FLOAT_HPP
#include "pythonic/include/types/attr.hpp"
#include <cstddef>
#ifdef ENABLE_PYTHON_MODULE
#include "pythonic/python/core.hpp"
PYTHONIC_NS_BEGIN
template <>
struct to_python<long double> {
static PyObject *convert(long double d);
};
template <>
struct to_python<double> {
static PyObject *convert(double d);
};
template <>
struct to_python<float> {
static PyObject *convert(float d);
};
template <>
struct from_python<long double> {
static bool is_convertible(PyObject *obj);
static long double convert(PyObject *obj);
};
template <>
struct from_python<double> {
static bool is_convertible(PyObject *obj);
static double convert(PyObject *obj);
};
template <>
struct from_python<float> {
static bool is_convertible(PyObject *obj);
static float convert(PyObject *obj);
};
PYTHONIC_NS_END
#endif
#endif