CP supports only integer decision variables. However, it is possible to constrain floating point expressions, or to use them as an objective term. It is also possible to declare floating point expressions with the dexpr keyword.
To access this example, go to: examples/opl/floatexpr.
regards