Macaulay2 » Documentation
Packages » ForeignFunctions » ForeignType » ForeignRealType
next | previous | forward | backward | up | index | toc

ForeignRealType -- foreign real type

Description

This is the class for C real types. There are two built-in types, float for reals using the single-precision floating-point format and double for reals using the double-precision floating-point format.

i1 : float

o1 = float

o1 : ForeignRealType
i2 : double

o2 = double

o2 : ForeignRealType

Menu

Methods that use a foreign real type:

Protected objects of class ForeignRealType:

  • double
  • float
  • mpfrT -- MPFR multiple-precision floating-point type

For the programmer

The object ForeignRealType is a type, with ancestor classes ForeignType < Type < MutableHashTable < HashTable < Thing.


The source of this document is in ForeignFunctions.m2:1041:0.