Package org.jscience.physics.amount

Examples of org.jscience.physics.amount.Amount.doubleValue()


    public static ComplexAmount valueOf(String s){
        /* Amount is positive, Complex is unit vector */
        ComplexAmount retval=new ComplexAmount();
        Amount amount = Amount.valueOf(s);
        retval.cUnit = amount.getUnit();
        retval.cComplex=Complex.valueOf(amount.doubleValue(amount.getUnit()),0);

        return retval;
    }
    public ComplexAmount to(Unit u){
        ComplexAmount retval = this;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.