@Override Object protoFromSoy(SoyValue field) { return (float) field.floatValue(); } };
@Override Object protoFromSoy(SoyValue field) { return (float) field.floatValue(); } };
@Override Object protoFromSoy(SoyValue field) { return field.floatValue(); } };
@Override Object protoFromSoy(SoyValue field) { return field.floatValue(); } };
/** * Returns the smallest (closest to negative infinity) integer value that is greater than or equal * to the argument. */ public static long ceil(SoyValue arg) { if (arg instanceof IntegerData) { return ((IntegerData) arg).longValue(); } else { return (long) Math.ceil(arg.floatValue()); } }
/** * Returns the smallest (closest to negative infinity) integer value that is greater than or equal * to the argument. */ public static long ceil(SoyValue arg) { if (arg instanceof IntegerData) { return ((IntegerData) arg).longValue(); } else { return (long) Math.ceil(arg.floatValue()); } }
/** * Returns the largest (closest to positive infinity) integer value that is less than or equal to * the argument. */ public static long floor(SoyValue arg) { if (arg instanceof IntegerData) { return ((IntegerData) arg).longValue(); } else { return (long) Math.floor(arg.floatValue()); } }
/** * Returns the largest (closest to positive infinity) integer value that is less than or equal to * the argument. */ public static long floor(SoyValue arg) { if (arg instanceof IntegerData) { return ((IntegerData) arg).longValue(); } else { return (long) Math.floor(arg.floatValue()); } }
/** Performs the unary negation {@code -} operator on the value. */ public static NumberData negative(SoyValue node) { if (node instanceof IntegerData) { return IntegerData.forValue(-node.longValue()); } else { return FloatData.forValue(-node.floatValue()); } }
/** Performs the unary negation {@code -} operator on the value. */ public static NumberData negative(SoyValue node) { if (node instanceof IntegerData) { return IntegerData.forValue(-node.longValue()); } else { return FloatData.forValue(-node.floatValue()); } }