Codota Logo
ScaledUnit.toDerivedUnit
Code IndexAdd Codota 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)

  • Common ways to obtain ScaledUnit
private void myMethod () {
ScaledUnit s =
  • Codota IconUnit unit;(ucar.units.ScaledUnit) unit
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • JButton (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now