Float

From CometPublic

Jump to: navigation, search

The comet declaration

   Float x(20.1);

declares x as an instance of the builtin class Float. Like Java, comet provides wrappers around the scalar comet type float. This class has the following API

   class Float {
      float getValue();
      void setValue(float);
   }

Note that a comet float uses a double precision representation, i.e., a 64-bit wide IEEE floating point (a double in C++)