« Home » « Learn » « Download » « Github »

logo

Cello High Level C

Methods

c_float

double c_float(var self);

Returns the object self represented as a double.

Examples

Usage

printf("%f", c_float($F(5.1))); /* 5.1 */
printf("%f", c_float($F(6.2))); /* 6.2 */

C_Float


Interpret as C Float

The C_Float class should be overridden by types which are representable as a C style Float of the type double.

Definition

struct C_Float {
  double (*c_float)(var);
};

Implementers

  • Float |     Floating Point Object

Back