|
Leonardus
|
Conversion functions. More...
#include <string>#include <utility>#include <gmp.h>
Include dependency graph for conversion.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | conversion |
| Collection of conversion functions. | |
Functions | |
| std::string | conversion::__int128_to_string (__int128 p_z) |
| Converts an __int128 to its string representation. | |
| std::string | conversion::__float128_to_string (__float128 p_float, size_t p_precision) |
| Converts a __float128 to its string representation. | |
| __int128 | conversion::string_to___int128 (const std::string &p_s) |
| Converts a string to an __int128 value. | |
| __float128 | conversion::string_to___float128 (const std::string &p_s) |
| Converts a string to a __float128 value. | |
| std::pair< bool, __float128 > | conversion::mpz_t_to___float128 (const mpz_t p_src) |
| Converts a mpz_t into a __float128. | |
| std::pair< bool, __int128 > | conversion::mpz_t_to___int128 (const mpz_t p_src) |
| Converts a mpz_t into an __int128. | |
| void | conversion::__int128_to_mpz_t (mpz_t p_dst, __int128 p_src) |
| Converts an __int128 into a mpz_t. | |
| bool | conversion::__float128_to_mpf_t (mpf_t p_dst, __float128 p_f128) |
| Converts a __float128 to a mpf_t. | |
Conversion functions.
Leonardus, a minimalist stack-based programming system. Copyright (C) 2025 Andreas Muckenschnabel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.