Package ptolemy.math

Examples of ptolemy.math.FixPoint.bigDecimalValue()


    public void fire() throws IllegalActionException {
        super.fire();

        if (input.hasToken(0)) {
            FixPoint value = ((FixToken) input.get(0)).fixValue();
            String string = value.bigDecimalValue().toString() + " "
                    + value.getPrecision().toString(Precision.VHDL);

            output.send(0, new StringToken(string));
        }
    }
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.