float type

The type float specifies a single-precision value.

float type uses 32 bits of storage.

float type variables are useful when you need a fractional component.

Here are some example float variable declarations:


public class Main {

  public static void main(String args[]) {
    float high, low;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.