modified to allow 0f in numeric value and converted test case to annotation based.