Macaulay2 Engine
Loading...
Searching...
No Matches

◆ from_BigReal()

template<class RingType>
virtual bool M2::ConcreteRing< RingType >::from_BigReal ( gmp_RR q,
ring_elem & result ) const
inlinevirtual

Reimplemented from Ring.

Definition at line 176 of file aring-glue.hpp.

177 {
178 Element a(*R);
179 bool ret = get_from_BigReal(*R, a, q);
180 if (ret) R->to_ring_elem(result, a);
181 return ret;
182 }
std::unique_ptr< RingType > R
RingType::Element Element
bool get_from_BigReal(const RT &R, typename RT::ElementType &a, gmp_RR b)