Examples of CurrinFloat


Examples of org.asturlinux.frade.currin.program.type.CurrinFloat

  if ( b == 0 )
      throw new InterpreterException("Float division: 0 in denominator!");

  Logger logger = Logger.getLogger("RuntimeLogger");
  logger.debug("Primitive float division: " + a + " " + b);
  m.setResult( new CurrinRef(new CurrinFloat(a / b)));
    }
View Full Code Here

Examples of org.asturlinux.frade.currin.program.type.CurrinFloat

  if ( b == 0 )
      throw new InterpreterException("Integer division: 0 in denominator!");

  Logger logger = Logger.getLogger("RuntimeLogger");
  logger.debug("Primitiva Division enteros: " + a + " " + b);
  m.setResult( new CurrinRef(new CurrinFloat(a / b)));
    }
View Full Code Here

Examples of org.asturlinux.frade.currin.program.type.CurrinFloat

  CurrinRef second_op = (CurrinRef)_param_refs.get(1);

  float a = ((CurrinFloat)first_op.getReference()).getValue();
  float b = ((CurrinFloat)second_op.getReference()).getValue();

  m.setResult( new CurrinRef(new CurrinFloat(a + b)));
    }
View Full Code Here

Examples of org.asturlinux.frade.currin.program.type.CurrinFloat

  CurrinRef second_op = (CurrinRef)_param_refs.get(1);

  float a = ((CurrinFloat)first_op.getReference()).getValue();
  float b = ((CurrinFloat)second_op.getReference()).getValue();

  m.setResult( new CurrinRef(new CurrinFloat(a * b)));
    }
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.