echoVal.value = (short)value; sqrtVal.value = Math.sqrt(value);
echoVal.value = value; sqrtVal.value = Math.sqrt( (double) value ); if(Double.isNaN(sqrtVal.value)) { throw org.apache.axis.AxisFault.makeFault(new Exception("arg cannot be < 0")); }