# Float class

A wrapper class for single-precision floating point numbers.

This class wraps Dart's double type but represents it as a single-precision float, similar to Java's Float class.

Example usage:

    Float a = Float(3.14);
    Float b = Float.valueOf(2.71);
    Float c = Float.parseFloat("1.618");

    print(a.toString()); // "3.14"
    print(a.compareTo(b)); // 1

Implemented types
  - Comparable<Float>

## Constructors

Float.new(double _value)
  Creates a Float with the specified value.
  const

## Properties

hashCode → int
  Returns the hash code for this Float.
  no setter override
isFinite → bool
  Returns true if the value is finite.
  no setter
isInfinite → bool
  Returns true if the value is infinite.
  no setter
isNaN → bool
  Returns true if the value is NaN.
  no setter
isNegative → bool
  Returns true if the value is negative.
  no setter
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited
value → double
  Returns the wrapped float value.
  no setter

## Methods

abs() → Float
  Returns the absolute value of this Float.
ceil() → Float
  Returns the ceiling of this Float.
compareTo(Float other) → int
  Compares this Float with another Float.
  override
floor() → Float
  Returns the floor of this Float.
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
round() → Float
  Rounds this Float to the nearest integer.
toInt() → int
  Returns the value as an int (truncated).
toString() → String
  Returns a string representation of this Float.
  override
truncate() → Float
  Truncates this Float to an integer.

## Operators

operator %(Float other) → Float
operator *(Float other) → Float
operator +(Float other) → Float
  Arithmetic operators
operator -(Float other) → Float
operator /(Float other) → Float
operator <(Float other) → bool
  Comparison operators
operator <=(Float other) → bool
operator ==(Object other) → bool
  Returns true if this Float equals the specified object.
  override
operator >(Float other) → bool
operator >=(Float other) → bool
operator unary-() → Float

## Static Methods

max(double a, double b) → double
  Returns the larger of two double values.
min(double a, double b) → double
  Returns the smaller of two double values.
parseFloat(String str) → Float
  Parses a string to a Float.
valueOf(double value) → Float
  Returns a Float instance representing the specified double value.
valueOfString(String str) → Float
  Returns a Float instance from a string.

## Constants

MAX_VALUE → const double
  Maximum finite value for a float
MIN_VALUE → const double
  Minimum positive normal value for a float
NaN → const double
  Not-a-Number value
NEGATIVE_INFINITY → const double
  Negative infinity
POSITIVE_INFINITY → const double
  Positive infinity