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

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

  • 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