/** * 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); }
/** * 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); }
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)="
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)="