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

How to use
toDerivedUnit
method
in
ucar.units.ScaledUnit

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

origin: edu.ucar/udunits

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

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

    .println("nauticalMile.raiseTo(2)=" + nauticalMile.raiseTo(2));
System.out.println("nauticalMile.toDerivedUnit(1.)="
    + nauticalMile.toDerivedUnit(1.));
System.out
    .println("nauticalMile.toDerivedUnit(new float[]{1,2,3}, new float[3])[1]="
        + nauticalMile.toDerivedUnit(new float[] { 1, 2, 3 },
            new float[3])[1]);
System.out.println("nauticalMile.fromDerivedUnit(1852.)="
origin: org.lasersonlab.thredds/udunits

    .println("nauticalMile.raiseTo(2)=" + nauticalMile.raiseTo(2));
System.out.println("nauticalMile.toDerivedUnit(1.)="
    + nauticalMile.toDerivedUnit(1.));
System.out
    .println("nauticalMile.toDerivedUnit(new float[]{1,2,3}, new float[3])[1]="
        + nauticalMile.toDerivedUnit(new float[] { 1, 2, 3 },
            new float[3])[1]);
System.out.println("nauticalMile.fromDerivedUnit(1852.)="
ucar.unitsScaledUnittoDerivedUnit

Javadoc

Converts a numeric value from this unit to the underlying derived 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.
  • fromDerivedUnit
    Converts numeric values from the underlying derived unit to this unit.
  • 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
  • divideBy
  • raiseTo,
  • 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 Vim 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