greenhouse
a creative coding toolkit for spatial interfaces

Base Types

The basic number types in Greenhouse prefer 64-bit representations, for maximum range (in the case of int64) and accuracy (in the case of float64).

  • bool
  • int64
  • float64

Example

#define WORKER
#include "Greenhouse.h"

void Setup ()
{ INFORM ("O! never say that I was " + ToStr (false) + " of heart");

  INFORM ("-2 ^ 63 = "     + ToStr (pow (-2, 63)));
  INFORM (" 2 ^ 63 - 1 = " + ToStr (pow (2, 63) - 1));

  INFORM ("PI      = "     + ToStr (PI) + " (more or less)");
}