### Question:
FloatConstant extends FloatFunction implements ConstantFunction { @Override public float getFloat(Record rec) { return value; } FloatConstant(int position, float value); @Override float getFloat(Record rec);  }### Answer:
@Test public void testConstant() { FloatConstant constant = new FloatConstant(0, 123.45f); Assert.assertTrue(constant.isConstant()); Assert.assertEquals(123.45f, constant.getFloat(null), 0.00001); }