Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.9.1
-
None
-
None
Description
In Python, the value you use to initialize a constant determines the type it has. When a constant is declared as a double, it should be a double in the generated code, even if it happens to be possible to represent it as an int.
Example:
const double RADIUS = 15.0;
will generate the following Python:
RADIUS = 15
it should have generated this:
RADIUS = 15.0
Most of the time this is not going to be a problem, but every now and then you get some wrong results when doing math with different types.