congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ScaledUnit.fromDerivedUnit
Code IndexAdd Tabnine to your IDE (free)

How to use
fromDerivedUnit
method
in
ucar.units.ScaledUnit

Best Java code snippets using ucar.units.ScaledUnit.fromDerivedUnit (Showing top 4 results out of 315)

origin: org.lasersonlab.thredds/udunits

/**
 * Converts a numeric value from the underlying derived unit to this unit.
 * 
 * @param amount
 *            The numeric value in the underlying derived unit.
 * @return The equivalent value in this unit.
 * @throws ConversionException
 *             Can't convert value.
 */
public float fromDerivedUnit(final float amount) throws ConversionException {
  return (float) fromDerivedUnit((double) amount);
}
origin: edu.ucar/udunits

/**
 * Converts a numeric value from the underlying derived unit to this unit.
 * 
 * @param amount
 *            The numeric value in the underlying derived unit.
 * @return The equivalent value in this unit.
 * @throws ConversionException
 *             Can't convert value.
 */
public float fromDerivedUnit(final float amount) throws ConversionException {
  return (float) fromDerivedUnit((double) amount);
}
origin: org.lasersonlab.thredds/udunits

            new float[3])[1]);
System.out.println("nauticalMile.fromDerivedUnit(1852.)="
    + nauticalMile.fromDerivedUnit(1852.));
System.out
    .println("nauticalMile.fromDerivedUnit(new float[]{1852},new float[1])[0]="
        + nauticalMile.fromDerivedUnit(new float[] { 1852 },
            new float[1])[0]);
System.out.println("nauticalMile.equals(nauticalMile)="
origin: edu.ucar/udunits

            new float[3])[1]);
System.out.println("nauticalMile.fromDerivedUnit(1852.)="
    + nauticalMile.fromDerivedUnit(1852.));
System.out
    .println("nauticalMile.fromDerivedUnit(new float[]{1852},new float[1])[0]="
        + nauticalMile.fromDerivedUnit(new float[] { 1852 },
            new float[1])[0]);
System.out.println("nauticalMile.equals(nauticalMile)="
ucar.unitsScaledUnitfromDerivedUnit

Javadoc

Converts a numeric value from the underlying derived unit to this unit.

Popular methods of ScaledUnit

  • getScale
    Returns the multiplicative factor.
  • getUnit
    Returns the reference unit.
  • <init>
    Constructs from a multiplicative factor, a reference unit, and an identifier.
  • equals
    Indicates if this unit is semantically identical to an object.
  • getCanonicalString
    Returns the canonical string representation of the unit.
  • getDerivedUnit
    Gets the derived unit underlying this unit.
  • getInstance
  • isDimensionless
    Indicates if this unit is dimensionless. A ScaledUnit is dimensionless if and only if the reference
  • multiplyBy
  • raiseTo
  • toDerivedUnit
    Converts numeric values from this unit to the underlying derived unit.
  • divideBy
  • toDerivedUnit,
  • divideBy

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JButton (javax.swing)
  • JTextField (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now