Examples of round()


Examples of org.elasticsearch.common.rounding.TimeZoneRounding.round()

        }
        TimeZoneRounding tzRounding = tzRoundingBuilder
                .preZone(tz)
                .preZoneAdjustLargeInterval(true)
                .build();
        return tzRounding.round(ts);
    }
}
View Full Code Here

Examples of org.exist.xquery.value.NumericValue.round()

        value = (NumericValue) item;
      } else {
        value = (NumericValue) item.convertTo(Type.NUMBER);
      }
         
      result = value.round(precision);
        }
       
        if (context.getProfiler().isEnabled())
            {context.getProfiler().end(this, "", result);}
       
View Full Code Here

Examples of org.hsqldb.types.DateTimeType.round()

                    if (interval < 0) {
                        throw Error.error(ErrorCode.X_42566, (String) data[1]);
                    }

                    return funcType == FUNC_ROUND
                           ? type.round(data[0], interval)
                           : type.truncate(data[0], interval);
                }
            }

            // fall through
View Full Code Here

Examples of org.hsqldb.types.DateTimeType.round()

                    if (interval < 0) {
                        throw Error.error(ErrorCode.X_42566, (String) data[1]);
                    }

                    return funcType == FUNC_ROUND
                           ? type.round(data[0], interval)
                           : type.truncate(data[0], interval);
                }
            }

            // fall through
View Full Code Here

Examples of org.hsqldb.types.Type.round()

                    if (interval < 0) {
                        throw Error.error(ErrorCode.X_42566, (String) data[1]);
                    }

                    return funcType == FUNC_ROUND
                           ? type.round(data[0], interval)
                           : type.truncate(data[0], interval);
                }
            }

            // fall through
View Full Code Here

Examples of org.hsqldb.types.Type.round()

                    if (interval < 0) {
                        throw Error.error(ErrorCode.X_42566, (String) data[1]);
                    }

                    return funcType == FUNC_ROUND
                           ? type.round(data[0], interval)
                           : type.truncate(data[0], interval);
                }
            }

            // fall through
View Full Code Here

Examples of org.jExigo.FixedDecimalNumber.round()

public void testRound()
{
  FixedDecimalNumber fda = new FixedDecimalNumber("1");
  try {
    fda.round(9)// too big but not an error
  } catch (Exception e) {
    fail(e.getMessage());
  }
  assertEquals("1", fda.get());
 
View Full Code Here

Examples of org.pdf4j.saxon.value.NumericValue.round()

        if (e != this) {
            return e;
        }
        if (getNumberOfArguments() == 2 && Literal.isAtomic(argument[1])) {
            NumericValue start = (NumericValue)((Literal)argument[1]).getValue();
            start = start.round();
            long intstart = start.longValue();
            if (intstart > Integer.MAX_VALUE) {
                return new Literal(EmptySequence.getInstance());
            }
            return new TailExpression(argument[0], (int)intstart);
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.round()

      {
        HashMap<Vector3, int[]> fieldBlocks = ((ItemModeCustom) projector.getMode()).getFieldBlockMap(projector, projector.getModeStack());
        Vector3 fieldCenter = new Vector3((TileEntity) projector).translate(projector.getTranslation());
        Vector3 relativePosition = position.clone().subtract(fieldCenter);
        relativePosition.rotate(-projector.getRotationYaw(), -projector.getRotationPitch());
        blockInfo = fieldBlocks.get(relativePosition.round());
      }

      // Search nearby inventories to extract blocks.
      for (int dir = 0; dir < 6; dir++)
      {
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.