Use DefinedConstant.parseDouble based parsing to handle fractions. For BigRational, this is already supported via BigRational.from() + test case