
if i try to evaluate 1/100 i obtain 0 not 0.01
It's a bug?
i've tryed:
IGenericExpression<decimal> eGeneric = ExpressionFactory.CreateGeneric<decimal>("1/100", context);


Coordinator
Dec 14, 2007 at 2:17 AM

When dividing two integers, an integer division is performed (which gives an integer result). If you change either of the numbers to a floatingpoint value, then a floatingpoint division is performed. So if you try the expression
1.0/100 or
1/100.0 then the result will be 0.01.



thank you

