In IronPython is there any way to force the expression containing integer values to be calculated as floating point. For instance, I'd like the expression
1/3
to be evaluated as
1./3.
with the result 0.333...
I need this to make a simple run-time expression calculator within a C# project by means of IronPython. I cannot force users to input expression with trailing decimal points.
eval
on these expressions? (If not, good - it's kind of an insecure way to implement a calculator) – Incoherence