float

Module: ecereCOM
Type: Basic Data Type

Description

Core C single precision floating-point real number data type. A float ranges from 1.17549435082228750e-38 to 3.40282346638528860e+38.

Properties and Members

  isNanbool
  isInfbool
  signBitint

Non-Virtual Methods

  inf
  nan

Usage


Used in the declaration section of code, which is before any statements.

Example

float aFloat; // A stand alone declaration of a float.
float a, b; // Declaring two floats at the same time.
float c = 12.123456; // Declaring and initializing a float at the same time.

Remarks


Unlike other languages, the float data type is actually a class.

float is equivalent to a float in C.

See Also


bool, byte, char, char *, double, enum, int, int64, uint, uint16, uint32, uint64, OnCompare(), OnCopy(), OnDisplay(), OnEdit(), OnFree(), OnGetDataFromString(), OnGetString(), OnSaveEdit(), OnSerialize(), OnUnserialize()